This is the first instance of action:
Code: Select all
if ($action == "edit_two") {
$user = mysql_query("UPDATE personalize SET Password='$Password',Weather='$Weather' WHERE (Name='$Name')");
setcookie("site_user", $Name, time() + 31536000, "/");
setcookie("site_pass", $Password, time() + 31536000, "/");
showheader("Edit Success!");This is the second instance:
Code: Select all
<FORM METHOD=POST ACTION="<?php echo $_SERVERї'PHP_SELF'] ?>">
<INPUT TYPE="hidden" NAME="Name" VALUE="<?php echo $infoї'Name'] ?>">
<INPUT TYPE="hidden" NAME="action" VALUE="edit_two">Code: Select all
$Name = $_POSTї'Name'];
$Password = $_POSTї'Password'];Can anyone help me to understand this?
Thanks