Bluehost.com Web Hosting $6.95

get back to index.php

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=&...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-22-2003
Sudheer Palaparambil
 
Posts: n/a
Default get back to index.php

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!
Reply With Quote
  #2 (permalink)  
Old 10-22-2003
Marek Kilimajer
 
Posts: n/a
Default Re: [PHP] get back to index.php

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!
>

Reply With Quote
  #3 (permalink)  
Old 10-22-2003
Erwin Moller
 
Posts: n/a
Default Re: get back to index.php

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:10 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0