Forum Moderators: coopster

Message Too Old, No Replies

Adding additonal values from forms to the top of the action page

I would like to take hidden fields off pages, but action page requires them

         

Jeremy_H

3:09 am on Nov 18, 2006 (gmt 0)

10+ Year Member



Hello,

I have form on multiple pages with one text input and two hidden fields.

When the user submits the form, they are taken to:

/actionpage.php?input=x&hidden1=y&hidden2=z

On the action page there is a third party JavaScript that I can not change that requires the two hidden fields.

I am wondering if I can setup something at the top of the action page that establishes the two hidden fields, allowing me to take them off from all my pages while still allowing the third party script to work.

Any ideas?

Thanks.

justageek

3:42 pm on Nov 18, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you tried the hidden variable syntax? Something like:

<input type="hidden" name="hidden1" value="y">
<input type="hidden" name="hidden2" value="z">

JAG

eelixduppy

9:34 pm on Nov 18, 2006 (gmt 0)



You can just declare the GET variable at the top of your action page instead of passing it through the form:

$_GET['hidden1'] = "something";
$_GET['hidden2'] = "something else";