Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
Linux in General => Linux Development & Programming => Topic started by: carobee on June 12, 2007, 12:05:17 PM
-
hi
i have writtem a login script which has
1) a login page consisting of username and password
after the username nad password is validated the control should be taken to an index page having some options.
i am facing problem to take control to the index page from login page.after all the things are valiadated how do i take the control to the next page.i used header( ) function but it was giving an error.
and also i wanted to test the case sensitivity of the username.
can anyone help?
-
the script is written in php.i m workin in php and mySQL
-
atm I am not into PHP at all but I am in the process to learn.. !!
btw you can test case sensitivity using regular expression or if not typical one then using some string functions.. !
-
Can you tell me of ny source of help to this problem?
thanks
-
You can use ereg to test username and it is really powerful,
here is more info:
http://in2.php.net/manual/en/function.ereg.php
About header function giving error.. are you using "exit" after calling header function ?
-
no i haven't use exit
-
if you are using header() then right after using header use exit..
example:
header(<something something>);
exit;
-
i will try out