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 中有 html 表单index.html。当我发布没有full name. 它显示alert但页面卡在register.php(空白页面)。我想显示alert页面index.html或至少重定向到index.html。怎么做???