Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/powerbi/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 当我提交后重定向时,我得到一个空白页_Php_Header_Submit - Fatal编程技术网

Php 当我提交后重定向时,我得到一个空白页

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和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: sucess.htm");
exit;
?>


向我们展示
suces.htm中的内容
?在页面开始时打开所有错误报告-我怀疑您已经向浏览器发送了一些输出,可能是偶然的。这将阻止发送
header()
调用。