1 に答える
1
header('...');
他の出力の前にのみ使用できます。あなたの場合、次のようになります。
<?php //beginning of the file
if (isset($_POST['Submit'])) {
$message = $_POST['message'];
$subject = $_POST['subject'];
$country_id = $_POST['country_id'];
createrow($message, $subject, $country_id);
header('Location: memberprofile.php');
}
.....
?><!DOCTYPE ....
<HTML>....
.....
于 2012-07-28T00:27:17.400 に答える