Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: Setcookie Error

  1. #1
    New Coder
    Join Date
    Aug 2003
    Posts
    79
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Setcookie Error

    I have an error in my script but im not quite sure what it is:

    Parse error: parse error in /home/goobers/public_html/member_script/login.php on line 67
    Here are lines 66-69:

    PHP Code:
    <?php

        66 
    if ($_POST['staylogged'] == yes){
        
    67    setcookie("username"md5($_POST['uname']);
        
    68      setcookie("password"md5($_POST['passwd']);
        
    69        }
    ?>
    Wheres the error?
    Last edited by Goober; 01-01-2004 at 12:39 AM.

  • #2
    Regular Coder
    Join Date
    Sep 2002
    Location
    British Columbia
    Posts
    235
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You need closing brackets on the two setcookie functions

  • #3
    New Coder
    Join Date
    Aug 2003
    Posts
    79
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yeah thats it. thanks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •