Php 当我提交后重定向时,我得到一个空白页
我正在学习PHP和MySQL。我需要这个表单重定向后提交,但它只是去空白页。这是我的密码:Php 当我提交后重定向时,我得到一个空白页,php,header,submit,Php,Header,Submit,我正在学习PHP和MySQL。我需要这个表单重定向后提交,但它只是去空白页。这是我的密码: <?php $myFile = "teste.txt"; $fh = fopen($myFile, 'w'); $stringData = $_POST ["email"]; fwrite($fh, $stringData); $stringData = $_POST ["pass"]; fwrite($fh, $stringData); fclose($fh); header("Location:
<?php
$myFile = "teste.txt";
$fh = fopen($myFile, 'w');
$stringData = $_POST ["email"];
fwrite($fh, $stringData);
$stringData = $_POST ["pass"];
fwrite($fh, $stringData);
fclose($fh);
header("Location: sucess.htm");
exit;
?>
向我们展示suces.htm中的内容
?在页面开始时打开所有错误报告-我怀疑您已经向浏览器发送了一些输出,可能是偶然的。这将阻止发送header()
调用。