|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
One form but 2 different pages
Hey,
As we all know that below lines of code would forward the form to page2.php on submit Code:
<html> <body> <form method="POST" action="page2.php"> <input type="submit" value="save"> <input type="submit" value="Continue"> </form> </body> </html> But how can I direct this same form when I click Save button to page3.php and on clicking Continue to page4.php. Is this possible to do, if YES HOW? |
|
#2
|
|||
|
|||
|
you can save the data from page1 in a session on page2 or you can just add hidden form elements in the form on page2. I would personally just use the session method.
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > One form but 2 different pages |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|