@ $uid=$_POST["uid"]; @ $name=$_POST["name"]; @ $area=$_POST["area"]; if($uid && $name && $area) { require("var.inc"); require("log.inc"); $result=mysql_query("select id from user where username='$uid' and name='$name' and address='$area'"); if($result) { $row=mysql_fetch_array($result); $result=mysql_query("update user set password='".$uid."' where id=$row[id]"); if($result) { ?> } else { ?> } require("close.inc"); } else { ?> } } ?>