投稿ヘッダーとメールヘッダーをオンにしcontact.html
て投稿する単純なフォームがありますが、それは.send.php
stays on send.php
after submit
どうすればこれを取得できますかreturn back to contact.html
。send.php の php ブロック内でこれを行うことはできますか?
投稿ヘッダーとメールヘッダーをオンにしcontact.html
て投稿する単純なフォームがありますが、それは.send.php
stays on send.php
after submit
どうすればこれを取得できますかreturn back to contact.html
。send.php の php ブロック内でこれを行うことはできますか?
参照: http://php.net/manual/en/function.header.php
<?php
// your other code here
header('Location: /contact.html');
exit;
?>
そのコードの前に何も出力されていないことを確認してください。そうしないと、エラーが発生します。
PHP ファイルで、すべてのフォーム処理の後、これを使用します。
header("Location: contact.html");
唯一の要件は、この関数の前に出力 (空行を含む) がないことです。