Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Sending hidden information using POST

send a form with both user input and notes to recipient



3:11 am on Jan 20, 2007 (gmt 0)

5+ Year Member

I'm working on this site that makes custom sized clothing products for every customer (i.e. they enter measurements, product is made and sent).

All the code for the form is set and working perfectly, but is there anyway to send the product ID along with the user imput using php? I don't want to have 200 php files for all the products, but I also don't want the user to have to enter the product when ordering from that product's page.

Is there some way I can send hidden data (from each page) along with the user inputted data, so I can track where the order came from?

Thanks so much!

smells so good

3:55 am on Jan 20, 2007 (gmt 0)

5+ Year Member

Sure, add a field to your form and make it a type of hidden.

<input type="hidden" name="fieldname" value="what you want to send">

When you process your POST data look for the value in fieldname



7:13 am on Jan 20, 2007 (gmt 0)

WebmasterWorld Senior Member dreamcatcher is a WebmasterWorld Top Contributor of All Time 10+ Year Member

Or if you don`t want to use POST data, store the information in session variables.



Featured Threads

Hot Threads This Week

Hot Threads This Month