diff --git a/README.md b/README.md index e22e5f4f8..ed55f7156 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,8 @@ You can also tie this into an existing extension based system, say for example G When configuring the TwiML app instead of pointing to `index.php` point to `input-method.php?Digits=2`. +If you still want the title to display also point to `input-method.php?Digits=2&PlayTitle=1`. + ## Including province prior to lookup It may be that your yap instance needs to search multiple states. By default yap will be biased towards the local number state (unless it's tollfree). To enable province lookup set the `$province_lookup`, variable to `true` in the `config.php` file. diff --git a/input-method.php b/input-method.php index 9b62a2387..6f83713cd 100644 --- a/input-method.php +++ b/input-method.php @@ -5,6 +5,7 @@ echo ""; $searchType = $_REQUEST['Digits']; + $playTitle = isset($_REQUEST['PlayTitle']) ? $_REQUEST['PlayTitle'] : 0; if ($searchType == "1") { $searchDescription = "someone to talk to"; @@ -14,6 +15,13 @@ ?> + + " . $GLOBALS['title'] . ""; + } + ?> + Press 1 to search for by city or county name. Press 2 to search for by zip code.