homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

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)

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)

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)

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


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved