note 38916 rejected from function.header by tomsommer
| From: | tomsommer@php.net | Date: | Mon, 12 Jan 2004 08:06:37 +0000 |
| Subject: | note 38916 rejected from function.header by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-63340@lists.php.net to get a copy of this message | ||
Note Submitter: aintshabby@yahoo.com
----
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