...

View Full Version : Setcookie Error



Goober
01-01-2004, 01:36 AM
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

66 if ($_POST['staylogged'] == yes){
67 setcookie("username", md5($_POST['uname']);
68 setcookie("password", md5($_POST['passwd']);
69 }
?>


Wheres the error?

Dylan Leblanc
01-01-2004, 02:33 AM
You need closing brackets on the two setcookie functions

Goober
01-01-2004, 03:02 AM
yeah thats it. thanks



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum