Thank you, all of your answers really helped me. I got it completed by making a page template that contained the form.
I am using
$_SERVER["QUERY_STRING"]; to pass the parameter into the hidden field. But it’s passing both the variable name and the value into the field.
Is there a way just to get the value?