User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 374,177 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,434 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1300 | Replies: 1
Reply
Join Date: Feb 2008
Location: Colorado
Posts: 2
Reputation: nova706 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
nova706 nova706 is offline Offline
Newbie Poster

Help Need to Pass Variables from form to form

  #1  
Feb 28th, 2008
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!
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Location: London or Slovakia
Posts: 1,907
Reputation: peter_budo has a spectacular aura about peter_budo has a spectacular aura about peter_budo has a spectacular aura about 
Rep Power: 9
Solved Threads: 216
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Posting Virtuoso

Re: Need to Pass Variables from form to form

  #2  
Feb 28th, 2008
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)

If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 4:31 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC