abahaedini Posted May 25, 2012 Share Posted May 25, 2012 (edited) Hi there I trying to design a multi form pages...but in one of pages (index.php) I want to repeat that page ultimate... for example: I have in index.php some codes like this: [/left]<html><head><title>test</title><body><form action="index2.php"><DIV><P>PLEASE INTRUDUSE YOUR FRIENDS!</P><BR>First Name: <input name="fname" type="text" /><BR>Last Name: <input name="lname" type="text" /></div><input name="add" type="button" value="Go To index2.php" /><input name="add" type="button" value="Add Another Person" /><input name="add" type="button" value="Cancel" /><form></body></html> if User click on "Add Another Person", I wana repeat this page with a news address like:http://127.0.0.1/index.php?page2how can do this? any idia or guide?thanks. Edited May 25, 2012 by abahaedini 1 Link to comment Share on other sites More sharing options...
abahaedini Posted May 25, 2012 Author Share Posted May 25, 2012 If I set value of action page "index.php?page=2" ....than how can I go index2.php page Link to comment Share on other sites More sharing options...
justsomeguy Posted May 25, 2012 Share Posted May 25, 2012 You can use the header function to send a location header to redirect the user to another page. http://www.php.net/manual/en/function.header.php Link to comment Share on other sites More sharing options...
abahaedini Posted June 4, 2012 Author Share Posted June 4, 2012 thanks..it works Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now