私は、ヘルプ リクエストに応答するための自動システムに取り組んでおり、それを使用しているクライアントがどこで得た応答に満足しているかを把握できるようにしたいと考えています。
プログラムは、その下に「はい/いいえ」の送信ボタンを付けて「あなたの応答に満足していますか」と尋ねる必要があります。ユーザーが送信すると、指定されたページに転送し、sendDebugMessage 関数を呼び出します (電子メールを送信します)。
これを行うために作成したコードは次のとおりですが、空白のページにリダイレクトされるだけです。
<?php
if (isset($_POST['Yes'])) {
?>
sendDebugMessage("A user WAS happy with their response!");
<META http-equiv="refresh" content="0; URL=http://example.com">
<?php
} elseif (isset($_POST['No'])) {
sendDebugMessage("A user was NOT happy with their response!");
?>
<META http-equiv="refresh" content="0; URL=http://example.com">
<?php
} else {
?>
Where you happy with this response?
<form action="" method="post">
<input type="submit" value="Yes" name="Yes" />
<input type="submit" value="No" name="No"/>
</form>
<br />
<?php
}
?>