forked from Nexmo/Quickstarts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathform.php
More file actions
35 lines (33 loc) · 776 Bytes
/
form.php
File metadata and controls
35 lines (33 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
if(!isset($_POST['os'])){
error_log('no os set');
return;
}
switch($_POST['os']){
//valid selections
case 'windows':
$support = 'Call back after you reboot.';
break;
case 'mac':
$support = 'Please just go to the genius bar.';
break;
case 'linux':
$support = 'Recompile your kernel.';
break;
case 'amiga':
$support = 'Hangup and dial our BBS for support.';
break;
//if our VXML is as expected, this should never happen
default:
include '../vxml/form.vxml';
return;
}
echo '<?xml version="1.0" encoding="UTF-8"?>';
?>
<vxml version="2.1">
<form>
<block>
<prompt><?php echo $support ?></prompt>
</block>
</form>
</vxml>