prepare($sql); try{ $stmt->execute(array( ':name' => $_POST['name'], ':password' => $_POST['password'])); }catch (Exception $e) { $_SESSION['error'] = '用户已存在'; header( 'Location: signup.php' ) ; return; } $_SESSION['success'] = 'Record Added'; header( 'Location: index.php' ) ; return; } ?>

NEW JOURNEY...


'.$_SESSION['error']."

\n"; unset($_SESSION['error']); } ?>