Created
September 22, 2015 12:53
-
-
Save twilioforkwc/33e35792ce0a97593e60 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header("content-type: text/xml"); | |
?> | |
<Response> | |
<?PHP if (empty($_POST["Digits"])) { ?> | |
<Say language="ja-jp">リンゴは1を、オレンジは2を、バナナは3を押してください。</Say> | |
<Gather numDigits="1" timeout="30" /> | |
<?PHP } elseif ($_POST["Digits"] == "1") { ?> | |
<Say language="ja-jp">リンゴを選択しました。</Say> | |
<?PHP } elseif ($_POST["Digits"] == "2") { ?> | |
<Say language="ja-jp">オレンジを選択しました。</Say> | |
<?PHP } elseif ($_POST["Digits"] == "3") {?> | |
<Say language="ja-jp">オレンジを選択しました。</Say> | |
<?PHP } else { ?> | |
<Say language="ja-jp">入力は1から3までです。</Say> | |
<?PHP } ?> | |
</Response> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment