How to redirect a user to main page once I capture his info in a form?

From: Date: Wed, 18 Apr 2001 21:03:18 +0000
Subject: How to redirect a user to main page once I capture his info in a form?
Groups: php.db 
Request: Send a blank email to php-db+get-8671@lists.php.net to get a copy of this message
Hi all, I have a simple form where I capture the information from users. Once the information is captured, I'd like to send the users the the main page. I already tried the header command but I get an error like this: Warning: Cannot add header information - headers already sent by (output started at page.php:42) in page.php on line 45 Any ideas?

« previous php.db (#8671) next »