It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Passing javascript variable on a form to another page

Passing javascript variable on a form to another page

Postby patrickd123 on Wed Jan 02, 2008 4:21 am

On my first page I have a form with the post method. I want to pass 2 javascrip variables along with the form fieldsm retrievable by request.form. Is that possible? Is there another way?

Thanks
patrickd123
 
Posts: 0
Joined: Wed Jan 02, 2008 4:13 am

Postby flabbyrabbit on Wed Jan 02, 2008 9:12 am

You could have to extra fields in your form "<input type=hidden name=name>" which value is set to the javascript variables. They wont be seen by the user but will be sent along with the rest of the form data when the form is submitted.

Flabby Rabbit
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England


Who is online

Users browsing this forum: No registered users and 2 guests