Hi Guys,
Currently when my users login it will output an error if they dont exist.
However now i want my script to run a second mysql query of they dont exist in the first query.
if they exist in the second query i want to place some vars in a session ( up to this point im fine )
Now i want the script to goto a different page..
How do i do the gogot a diff page...
Example, pseudo code ( if thats the right name for it )
PHP Code:
$username = from post; $pass = from post;
// do password encryption etc..
select id from table where username = username and pass = pass;
if (it didnt return a row above) {
select from another table where ..................... ;
if ( did return a row ) { redirect user to blaa.html ;
}
Last edited by lynxus; 11-27-2009 at 01:40 PM..
|