Re: [PHP] Session again !!!

2004-09-06 Thread Burhan Khalid
On Sun, 2004-09-05 at 17:32, Dre wrote: > I really did > and it behaves the same > > I tried isset() also but there is no good it still does not work !!! "Does not work" <-- explain this part. add error_reporting(E_ALL); as the first line of code, in addition to all the other suggestions. Check

Re: [PHP] Session again !!!

2004-09-05 Thread Chris Shiflett
--- Dre <[EMAIL PROTECTED]> wrote: > $username = trim(addslashes($_POST['user_name'])); > $pass = trim(addslashes($_POST['password'])); I recommend using mysql_escape_string() or mysql_real_escape_string() instead of addslashes(). > if((empty($_POST['user_name'])) || (empty($_POST['password'])))

Re: [PHP] Session again !!!

2004-09-05 Thread Jason Wong
On Sunday 05 September 2004 22:24, Dre wrote: > $_SESSION['uname'] = $username; session_write_close() before you redirect. > header('Location: /members/main.php'); -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Inter

Re: [PHP] Session again !!!

2004-09-05 Thread Dre
thanks "Torsten Roehr" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Dre" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > I really did > > and it behaves the same > > > > I tried isset() also but there is no good it still does not work !!! > > > > > > "Afan Pasal

Re: [PHP] Session again !!!

2004-09-05 Thread Dre
it does not actually exist in the real code I just added it to show that there are 2 equal signs in there "Andre Dubuc" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > In your code: > > if($_SESSION['uname'] = = "") > ^ > > Get rid of tha

Re: [PHP] Session again !!!

2004-09-05 Thread Torsten Roehr
"Dre" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I really did > and it behaves the same > > I tried isset() also but there is no good it still does not work !!! > > > "Afan Pasalic" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Try use > > > > if(empty($_SESSI

Re: [PHP] Session again !!!

2004-09-05 Thread raditha dissanayake
Dre wrote: according to what little i know this should give you a parse error. if($_SESSION['uname'] = = "") -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean

Re: [PHP] Session again !!!

2004-09-05 Thread Andre Dubuc
Hi, In your code: if($_SESSION['uname'] = = "") ^ Get rid of that extra space bewteen the == Hth, Andre On Sunday 05 September 2004 11:23 am, Dre wrote: > I really did > and it behaves the same > > I tried isset() also but there is no good it still does

Re: [PHP] Session again !!!

2004-09-05 Thread Dre
I really did and it behaves the same I tried isset() also but there is no good it still does not work !!! "Afan Pasalic" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Try use > > if(empty($_SESSION['uname']) > > instead > > if($_SESSION['uname'] = = "") > > > Afan > > > > Dre wro

Re: [PHP] Session again !!!

2004-09-05 Thread Dre
I really did and it behaves the same I tried isset() also but there is no good it still does not work !!! "Afan Pasalic" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Try use > > if(empty($_SESSION['uname']) > > instead > > if($_SESSION['uname'] = = "") > > > Afan > > > > Dre wro

Re: [PHP] Session again !!!

2004-09-05 Thread Afan Pasalic
Try use if(empty($_SESSION['uname']) instead if($_SESSION['uname'] = = "") Afan Dre wrote: Hi .. I'm still working on my members login script. I'm using a simple username/password login form that calls the following login script //= if((empty

[PHP] Session again !!!

2004-09-05 Thread Dre
Hi .. I'm still working on my members login script. I'm using a simple username/password login form that calls the following login script //= //= the login scrip works fine .. and it directs