how to send a js variable to php
Goto page Previous 1, 2
|
| View previous topic :: View next topic |
| Author |
Message |
Peter Pitt
Joined: 20 May 2006 Posts: 114 Location: Egypt
|
Yeah
So if my form action="contactform.php" |
| |
|
|
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| Then you have your javascript call myForm.submit() |
| |
|
|
Peter Pitt
Joined: 20 May 2006 Posts: 114 Location: Egypt
|
| Then how do i send the javascript variable into the submit form? |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
You have some form field of type hidden
And you run hiddenformfield.value = "foo" |
| |
|
|
|
|