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:[EMAIL PROTECTED]]
> Sent:         Sunday, March 18, 2001 1:45 AM
> To:   [EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
> Just Because It Works, Doesn't Mean It Isn't Broken
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to