Welcome to WebmasterWorld Guest from 54.167.83.224

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)

New User

5+ Year Member

joined:Jan 19, 2007
posts:10
votes: 0


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!

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

Junior Member

5+ Year Member

joined:Aug 1, 2006
posts:112
votes: 0


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

ssg

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

Senior Member

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

joined:Mar 30, 2003
posts:3719
votes: 0


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

dc

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members