Hi,

Any ideas of why the cookie isn't being saved?

<?

mysql_connect("localhost", "us1", "asdf");
mysql_select_db("db1");

if ($action == "edit_two") {

$user = mysql_query("UPDATE personalize SET Password='$Password',News1='$News1',News2='$News2',Weather='$Weather',News3='$News3', WHERE (Name='$Name')");

setcookie("site_user", $Name, time() + 31536000, "/");
setcookie("site_pass", $Password, time() + 31536000, "/");
?>


<?php
include "prepend.inc";
CommonHeader("Edit Success!");
?>
<CENTER><P>You Have Edited Your Profile.<BR>
User Name: <?php echo $Name ?>
<BR>
Password: <?php echo $Password ?>
<BR>News1: <?php echo $News1 ?><BR>
<BR>News2: <?php echo $News2 ?><BR>
<BR>News3: <?php echo $News3 ?><BR>
<BR>Weather: <?php echo $Weather ?><BR><BR>
Click <a href="http://worldslargestmall.cc/personalize/">here</a> to go to your homepage.
<?php
CommonFooter();
}

else {

$query = mysql_query("SELECT * FROM personalize WHERE(Name='$Name' AND Password='$Password')");


if (mysql_num_rows($query) != 1) {
include "prepend.inc";
CommonHeader("That User/Pass Combination was Incorrect");
echo "The $Name / $Password Combination is incorrect<P>Please Try Again.";
CommonFooter();
exit;
}


else {
$info = mysql_fetch_array($query);

include ("prepend.inc");

CommonHeader("Edit ".$info['Name']."'s Profile");


?>
<FORM METHOD=POST ACTION="<?php echo $PHP_SELF ?>">



<INPUT TYPE="hidden" NAME="Name" VALUE="<?php echo $info['Name'] ?>">
<INPUT TYPE="hidden" NAME="action" VALUE="edit_two">

<CENTER>
<TABLE>
<TR>
<TD COLSPAN=2><CENTER>Please Select Your Registration Options</CENTER></TD>
</TR>
<TR>
<TD>Your UserName</TD>
<TD><?php echo $info['Name'] ?></TD>
</TR>


<TR>
<TD>Choose Your Password</TD>
<TD><INPUT TYPE="password" NAME="Password" size="10" VALUE="<?php echo $info['Password'] ?>"></TD>
</TR>


<TR>
<TD>News Source 1</TD>
<TD><SELECT NAME="News1">
<OPTION VALUE="geeknews.php3"<?php if ($info['News1'] == "geeknews.php3") { echo " SELECTED"; } ?>>GeekNews</OPTION>
<OPTION VALUE="freshmeat.php3"<?php if ($info['News1'] == "freshmeat.php3") { echo " SELECTED"; } ?>>Fresh Meat</OPTION>
<OPTION VALUE="slashdot.php3"<?php if ($info['News1'] == "slashdot.php3") { echo " SELECTED"; } ?>>Slashdot</OPTION>
<OPTION VALUE="hotwired.php3"<?php if ($info['News1'] == "hotwired.php3") { echo " SELECTED"; } ?>>WebMonkey</OPTION>
<OPTION VALUE="benews.php3"<?php if ($info['News2'] == "benews.php3") { echo " SELECTED"; } ?>>BeNews</OPTION>
</SELECT>
</TD>
</TR>


<TR>
<TD>News Source 2</TD>
<TD><SELECT NAME="News2">
<OPTION VALUE="32bitsonline.php3"<?php if ($info['News2'] == "32bitsonline.php3") { echo " SELECTED"; } ?>>32bitsonline</OPTION>
<OPTION VALUE="freshmeat.php3"<?php if ($info['News2'] == "freshmeat.php3") { echo " SELECTED"; } ?>>Fresh Meat</OPTION>
<OPTION VALUE="slashdot.php3"<?php if ($info['News2'] == "slashdot.php3") { echo " SELECTED"; } ?>>Slashdot</OPTION>
<OPTION VALUE="hotwired.php3"<?php if ($info['News2'] == "hotwired.php3") { echo " SELECTED"; } ?>>WebMonkey</OPTION>

<OPTION VALUE="benews.php3"<?php if ($info['News2'] == "benews.php3") { echo " SELECTED"; } ?>>BeNews</OPTION>


</SELECT>
</TD>
</TR>
<TR>
<TD>Weather Source</TD>
<TD><SELECT NAME="Weather">
<OPTION VALUE="USNY0996"<?php if ($info['Weather'] == "USNY0996") { echo " SELECTED"; } ?>>New York</OPTION>
<OPTION VALUE="USCA0987"<?php if ($info['Weather'] == "USCA0987") { echo " SELECTED"; } ?>>San Francisco</OPTION>
<OPTION VALUE="USTX0617"<?php if ($info['Weather'] == "USTX0617") { echo " SELECTED"; } ?>>Houston</OPTION>
</SELECT>
</TD>
</TR>


<TR>
<TD>Isyndicate</TD>
<TD><SELECT NAME="News3">
<OPTION VALUE="isyndicate.php"<?php if ($info['News3'] == "isyndicate.php") { echo " SELECTED"; } ?>>Isyndicate</OPTION>
<OPTION VALUE="benews.php3"<?php if ($info['News2'] == "benews.php3") { echo " SELECTED"; } ?>>BeNews</OPTION>

</SELECT>
</TD>
</TR>




<TR><TD COLSPAN=2><CENTER><INPUT TYPE="submit" Value="Edit Profile!"></CENTER></TD></TR>
</TABLE>
</FORM>


<?php

CommonFooter();
}
}
?>


Thanks in advance,

Tim