November 22, 2024, 11:40:49 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: login  (Read 9706 times)

Offline carobee

  • Linux Noob !
  • *
  • Posts: 22
login
« 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?

Offline carobee

  • Linux Noob !
  • *
  • Posts: 22
Re: login
« Reply #1 on: June 13, 2007, 04:00:22 AM »
the script is written in php.i m workin in php and mySQL

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: login
« Reply #2 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.. !

Offline carobee

  • Linux Noob !
  • *
  • Posts: 22
Re: login
« Reply #3 on: June 15, 2007, 01:21:33 PM »
Can you tell me of ny source of help to this problem?
thanks

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: login
« Reply #4 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 ?

Offline carobee

  • Linux Noob !
  • *
  • Posts: 22
Re: login
« Reply #5 on: June 18, 2007, 04:11:59 AM »
no i haven't use exit

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: login
« Reply #6 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;

Offline carobee

  • Linux Noob !
  • *
  • Posts: 22
Re: login
« Reply #7 on: June 18, 2007, 07:24:39 AM »
i will try out