RE: [PHP-WIN] Cookies In IE5.5

From: Date: Mon, 19 Mar 2001 06:27:10 +0000
Subject: RE: [PHP-WIN] Cookies In IE5.5
Groups: php.windows 
Request: Send a blank email to php-windows+get-6131@lists.php.net to get a copy of this message
I use this example to set cookies and it works fine on my side with IE5: <?php if($Firstname and $password) {#1 mysql_connect("localhost"); $query = "select * from authenticate where Firstname = '$Firstname' and password = '$password'"; $result = mysql_db_query("users", $query); $value_row = mysql_num_rows($result); if($value_row == 0) {#2 echo"<B>Sorry</B>, unable to login <a href=\"login.html\">click here </a>try again"; exit; } else { $uniqueid = md5 (uniqid (rand())); $cookiestring = $Firstname.'&'.$uniqueid; setcookie("Authenticate", $cookiestring, time()+3600); $insert = "update authenticate set uniqueid='$uniqueid' where Firstname= '$Firstname' and password= '$password'"; $result = mysql_db_query("users", $insert); echo mysql_error(); echo"You are done boy<B><a href=\"inside.php\"> click here</a></B> to check it out"; } } else { echo"Please enter all the fields"; } ?> Hope this helps. > ---------- > From: Ben Cairns[SMTP:BenC@mailandnews.com] > Sent: Sunday, March 18, 2001 1:45 AM > To: php-windows@lists.php.net > Subject: [PHP-WIN] Cookies In IE5.5 > > How do I set a cookie in IE5, > > I cant do it, it just wont let me...I have looked at php.net and have > tried > the examples there, but they don't seem to work! > > HELP, Please!!!! > > -- Ben Cairns > E-Mail: BenC@mailandnews.com > Just Because It Works, Doesn't Mean It Isn't Broken > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.windows (#6131) next »