![]() |
|
#1
|
|||
|
|||
passing parameters between formsDoes anyone know how to pass Parameters from form to form...I'll explain what I'm trying to do here:
I am using 2 pages: Step1 and Step2. Iasking for users to input Sate (from a drop down menu) and a City (typed in the fieled) in the form1. I would like these paramters from the first form to appear in the form2, and then get it all back to me (info from form 1 and 2) at the end. The user would click continue button in Form 1 and then finally "send" in Form 2. I guess I need some PHP and Java. Can anyone help? Thanks for help! ![]() |
|||
|
#2
|
||||
|
||||
One possible solution to your questionHello eeschumann,
I am not certain if there is any other clever way to do this but this is what I would do if I were in your situation right now. First, I would create the 3 following files: functions.inc.php PHP Code:
step-1.php PHP Code:
step-2.php PHP Code:
You can just copy-N-paste, then upload the 3 files and view them off a test folder in your website to see if it does what you intend to do with your script. __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#3
|
|||
|
|||
|
Thank you. I will try that.
|
|
#4
|
|||
|
|||
|
I forgot to mention that I use Front Page 2002. Do I have to do anything for that? Also, my second form is written in Front Page, do I just add php code to it? Do I have to rename it .php instead of .htm? I am a bit confused on that.
Thank you. ![]() |
|
#5
|
||||
|
||||
|
It doesn't really matter if you're using FP2K to create your forms (i.e. your html code). However, whenever you need to mix php code with html, you definitely need to have the .php extension in the filenames.
There are ways to make .html parse PHP code, but seriously, you don't want to go there yet! __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
Recent GIDBlog
Problems with the Navy (Enlisted) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Apache on Windows XP and passing variables | Jos Elkink | Apache Web Server Forum | 4 | 21-Nov-2003 02:21 |
| Forms in multiple windows | ukrspp21 | MySQL / PHP Forum | 0 | 02-Oct-2003 11:07 |
| [class] Generate Forms Without Using HTML! | Elmseeker | PHP Code Library | 6 | 11-Mar-2003 12:05 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The