将用户带到新页面:
if (isset($_POST['submit'])) { $user= $_POST['username']; $email = $_POST['useremail']; $pass= $_POST['password']; mysql_query("INSERT INTO table (username, useremail, email) VALUES(`$username','$useremail','$email')");}//best outside the if statement so user isn't stuck on a white blank page.header("location: landing_page.php");exit;通过这样做,刷新的用户将得到刷新
landing_page.php,这意味着它将不会重复执行两次插入操作。
最好的建议 :如果没有,请检查用户是否首先存在!



