| PHP Redirect PHP redirects to specified page if username and password correct |
jsrip2012

msg:4544367 | 9:37 pm on Feb 10, 2013 (gmt 0) | When a user logs in onto my site, the form checks against the database using check.php. But I need it to check the information against the database then, if the information (username and password) is correct, redirects them to the homepage, but if they have not supplied the correct information, doesn't redirect them. Is this possible? If so can you provide me with a PHP Script. I've tried javascript redirect, header redirect and meta redirect but dreamweaver says that there is an error in the syntax on that specific line.
|
jatar_k

msg:4544787 | 3:00 am on Feb 12, 2013 (gmt 0) | Welcome to WebmasterWorld jsrip2012, you could do that, just use header() [php.net] if their information is correct, otherwise I would output the login page again with whatever error was encountered. just watch out to not have any output to the browser before using header(), even blank lines at the top of the file.
|
|
|