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

Title: login
Post 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?
Title: Re: login
Post by: carobee on June 13, 2007, 04:00:22 AM
the script is written in php.i m workin in php and mySQL
Title: Re: login
Post by: Ricky on June 15, 2007, 07:38:56 AM
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.. !
Title: Re: login
Post by: carobee on June 15, 2007, 01:21:33 PM
Can you tell me of ny source of help to this problem?
thanks
Title: Re: login
Post by: Ricky on June 15, 2007, 05:13:05 PM
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 ?
Title: Re: login
Post by: carobee on June 18, 2007, 04:11:59 AM
no i haven't use exit
Title: Re: login
Post by: Ricky on June 18, 2007, 06:47:55 AM
if you are using header() then right after using header use exit..

example:
Code: [Select]
header(<something something>);
exit;
Title: Re: login
Post by: carobee on June 18, 2007, 07:24:39 AM
i will try out