Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-01-2004, 12:36 AM   PM User | #1
Goober
New Coder

 
Join Date: Aug 2003
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Goober is an unknown quantity at this point
Setcookie Error

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

Quote:
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..
Goober is offline   Reply With Quote
Old 01-01-2004, 01:33 AM   PM User | #2
Dylan Leblanc
Regular Coder

 
Join Date: Sep 2002
Location: British Columbia
Posts: 235
Thanks: 0
Thanked 0 Times in 0 Posts
Dylan Leblanc is an unknown quantity at this point
You need closing brackets on the two setcookie functions
__________________
http://skyscraperpage.com/
Dylan Leblanc is offline   Reply With Quote
Old 01-01-2004, 02:02 AM   PM User | #3
Goober
New Coder

 
Join Date: Aug 2003
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Goober is an unknown quantity at this point
yeah thats it. thanks
Goober is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:24 PM.


Advertisement
Log in to turn off these ads.