if (!(isset($_POST['fullname']) && strlen($_POST['fullname']))) {
echo
"<script type=\"text/javascript\">".
"window.alert('You must enter your full name.');".
"</script>";
exit;
}
上記のコードはregister.phpファイルにあります。にhtmlフォームがありindex.htmlます。なしでフォームを投稿するときfull name。表示されますが、ページが(空白のページで)alertスタックします。ページに表示するか、少なくともにリダイレクトされます。どうやってするの???register.phpalertindex.htmlindex.html