Re: [PHP-DB] How to redirect a user to main page once I capture his info in a form?

2001-04-18 Thread Ron Brogden
At 02:03 PM 4/18/2001 -0700, Hector M Banda wrote: Warning: Cannot add header information - headers already sent by (output started at page.php:42) in page.php on line 45 What's at line 42 of page.php? Cheers -

Re: [PHP-DB] How to redirect a user to main page once I capture his info in a form?

2001-04-18 Thread Hector M Banda
header("location: http://www.need-info.com"); - Original Message - From: "Ron Brogden" [EMAIL PROTECTED] To: "Hector M Banda" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, April 18, 2001 2:08 PM Subject: Re: [PHP-DB] How to redirect a user to main page once I capture his info in

Re: [PHP-DB] How to redirect a user to main page once I capture his info in a form?

2001-04-18 Thread Johannes Janson
Hi, you have output in line 42. any html stuff. You have to send haeder information before any output. If you capture the info via a form you can make a seperate capturing script (not $PHP_SELF) to enter the info into a DB and at the end of this -after successfully inserting the data- redirect