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

-
Island Net AMT Solutions Group Inc.  Telephone:  250 383-0096
1412 Quadra  Toll Free:1 800 331-3055
Victoria, B.C.   Fax:250 383-6698
V8W 2L1  E-Mail:[EMAIL PROTECTED]
Canada   WWW:   http://www.islandnet.com/
-


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 a form?


 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

 --
---
 Island Net AMT Solutions Group Inc.  Telephone:  250
383-0096
 1412 Quadra  Toll Free:1 800
331-3055
 Victoria, B.C.   Fax:250
383-6698
 V8W 2L1  E-Mail:
[EMAIL PROTECTED]
 Canada   WWW:
http://www.islandnet.com/
 --
---


 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 the user to the page of
needs.

Johannes

""Hector M Banda"" [EMAIL PROTECTED] schrieb im Newsbeitrag
004801c0c84a$fee799a0$[EMAIL PROTECTED]">news:004801c0c84a$fee799a0$[EMAIL PROTECTED]...
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?




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]