| | |
Need to Pass Variables from form to form
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Feb 2008
Posts: 2
Reputation:
Solved Threads: 0
I am looking for a way to pass a variable from one form to another form in a new page. Bassically when a person clicks 'register' for a specific class, I would like it to open up my registration form and automatically fill in the class name and perhaps other variables such as price.
I am fairly new to javascript and php but I believe there is a way to do this in either. I have heard that I may need to have my register button be in a form that has hidden inputs that are my variables. The register button would then pass the variables on to a php script.
However, I am not very sure how to write the script (any tutorials would be of great help) and I am not sure how to fill my registration form with the variables from the script.
I also thought that it may be possible to send the variables through a link using javascript but am not really sure how to pick up the variables on the registration page.
Any help is much appreciated.
Thanks!
I am fairly new to javascript and php but I believe there is a way to do this in either. I have heard that I may need to have my register button be in a form that has hidden inputs that are my variables. The register button would then pass the variables on to a php script.
However, I am not very sure how to write the script (any tutorials would be of great help) and I am not sure how to fill my registration form with the variables from the script.
I also thought that it may be possible to send the variables through a link using javascript but am not really sure how to pick up the variables on the registration page.
Any help is much appreciated.
Thanks!
Look up php sessions, if you have problems to progres please post in PHP section of this forum
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
![]() |
Similar Threads
- passing values from a form to a dialog form (VB.NET)
- Please help with passing data from one form to another form (VB.NET)
- How to pass value from locally to globally (ASP.NET)
- How do I pass data in string from a form to another? (Visual Basic 4 / 5 / 6)
- Can a text link pass php variables? (PHP)
- how to pass a form to another form (Visual Basic 4 / 5 / 6)
- Passing variables from delphi to html forms (Pascal and Delphi)
- Pass parameters between Javascript and ASP (JavaScript / DHTML / AJAX)
- Passing variables into form fields (PHP)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: SVG to gif
- Next Thread: add onclick event programmatically
| Thread Tools | Search this Thread |
Tag cloud for JavaScript / DHTML / AJAX
ajax ajaxcode ajaxhelp animate api automatically beta boarder box bug calendar card checkbox child class column cookies createrange() css cursor dependent disablefirebug dom download dropdown editor element engine error events explorer ext file firehose flash form forms game google gwt html htmlform ie8 iframe image() images internet java javascript jawascriptruntimeerror jquery jsf jsfile jump math matrixcaptcha microsoft mimic mp3 mysql object offline onmouseoutdivproblem onreadystatechange parent passing pdf php player post problem progressbar rated rating regex runtime scroll search select session shopping size sql star stars stretch text textarea twitter validation w3c web website window windowofwords windowsxp wysiwyg xml xspf \n






