note 38916 added to function.header
| From: | aintshabby at yahoo dot com | Date: | Mon, 12 Jan 2004 05:42:08 +0000 |
| Subject: | note 38916 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-63336@lists.php.net to get a copy of this message | ||
I've been working on this for quite some time now, and finally know what the problem is. My
website registers user's username and password, and asks them for it in 'login.php'.
If their informaiton is correct, I tried using a 'header()' statement to redirect them to
'login_success.php'. However, php doesn't allow me to use the header redirection
after a 'require' or '<html>' statement, which I have plenty of in my code
before the header redirection.
I dont have access to my php.ini file, so how would I use ob_start or ob_end_flush in my code?
Can I have an easy example of some code the uses ob_start or ob_end_flush with a redirection in it?
Thanks in advance!
-influx
----
Manual Page -- http://www.php.net/manual/en/function.header.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38916
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38916&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38916&report=yes
Search -- http://master.php.net/manage/user-notes.php