This is a discussion on get back to index.php within the PHP General forums, part of the PHP Programming Forums category; Hi, I am calling the insert_user.php like this <form method="get" name="form" action=&...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I am calling the insert_user.php like this <form method="get" name="form" action="http://www.etooss.com/insert_user.php" onsubmit="return verifyIt(this);"> In insert_user.php, I am inserting the record to mysql db, nothing is displayed there. Now how do come back to index.php screen. Thank you Sudheer __________________________________________________ _______________ Making your life easy! That is Citibank Suvidha. http://server1.msn.co.in/msnleads/ci...itiSuvidha.asp Get your account now! |
|
|||
|
Use
header('Location: http://www.etooss.com/'); exit; Sudheer Palaparambil wrote: > Hi, > > I am calling the insert_user.php like this > > <form method="get" name="form" > action="http://www.etooss.com/insert_user.php" > onsubmit="return verifyIt(this);"> > > In insert_user.php, I am inserting the record to mysql db, nothing is > displayed there. Now how > do come back to index.php screen. > > Thank you > > Sudheer > > __________________________________________________ _______________ > Making your life easy! That is Citibank Suvidha. > http://server1.msn.co.in/msnleads/ci...itiSuvidha.asp Get > your account now! > |
|
|||
|
Sudheer Palaparambil wrote:
> Hi, > > I am calling the insert_user.php like this > > <form method="get" name="form" > action="http://www.etooss.com/insert_user.php" > onsubmit="return verifyIt(this);"> > > In insert_user.php, I am inserting the record to mysql db, nothing is > displayed there. Now how > do come back to index.php screen. > header("Location: index.php"); should do the trick. Be sure you don't generate output during your DB-insertion. Regards, Erwin Moller |