Forum Moderators: DixonJones

Message Too Old, No Replies

Referring web site using a hidden field

One form for 15 inquiries, this is tough.

         

bartainer

4:39 pm on May 9, 2006 (gmt 0)

10+ Year Member



Hello,

I'm not sure if this is the correct subject, however. I'm using ONE form for a client web site. This is vacation rentals site with hundreds of listings. A person is interested in one particular listing and he/she hits a submit button and is brought to my ONE form. Insted of asking for the information about that particular property in the form, I'd like the information passed automatically to the form! Hidden Field?

jatar_k

4:41 pm on May 9, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



hidden field should work just fine I would think

bartainer

4:43 pm on May 9, 2006 (gmt 0)

10+ Year Member



Wow! That was fast. Please explain.

Thanks.

jatar_k

4:46 pm on May 9, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



hard to explain much given I don't totally know the situation

if the user is hitting a submit button on some site and comes to your one form then you could have whatever hidden fields you need to pass to your form posted along when the button is pressed. Your form would then read them and prepopulate the form or do tracking or whatever it needs to do.

bartainer

1:25 pm on May 10, 2006 (gmt 0)

10+ Year Member



Okay, I think I got this figured out! A little PHP helped. I did create a $variable on the page with the button and when the submit button was hit, the page went to the actual form! I had the $variable echoed and wala, it was there at the top of the page.

It worked. :)

Thanks