Redirect back to Plum from PHP file, not working
Posted: Tue Jun 22, 2010 3:01 am
Hi All
I have wrttend code to validate the inputs in PHP file, ones call is validated, I have to redirect back to plum scratch pad, but call is getting hanged in PHP file.
The below is the code written by me... Please help me
<form id="clockin">
<field name="customerid" type="digits?length=4">
<prompt>
You have selected for Clock In.
</prompt>
<prompt>
Enter Client ID and press Hash to Submit.
</prompt>
<filled>
You entered <value expr="customerid"/>.
<prompt>
Please wait while we process your information.
</prompt>
<submit namelist="customerid" next="http://voicexcall.99k.org/TestVXML/CustomerID.php"/>
<goto next="#caretaker"/>
</filled>
<noinput>
Sorry, No Input received.
<reprompt/>
</noinput>
<nomatch>
Sorry, Invalid Client ID.
<reprompt/>
</nomatch>
</field>
<block>
Please hold for clockin.
</block>
</form>
<form id="caretaker">
<field name="caretakerid" type="digits?length=6">
<prompt>
Enter CareTaker ID and Password. Enter CareTakerID followed by Star then Password. And press Hash to Submit.
</prompt>
<filled>
You entered <value expr="caretakerid"/>.
<prompt>
Please wait while we process your information.
</prompt>
<submit namelist="caretakerid" next="http://voicexcall.99k.org/TestVXML/CareTakerID.php"/>
</filled>
<noinput>
Sorry, No Input received.
<reprompt/>
</noinput>
<nomatch>
Sorry, Invalid CareTaker ID.
<reprompt/>
</nomatch>
</field>
<block>
Please hold for clockin.
</block>
</form>
--------- PHP code----------------
<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
$customerid = $_GET[customerid];
?>
<vxml version="2.0">
<form>
<block>
<prompt>
Your Customer ID is <?php echo($customerid)?>.
</prompt>
</block>
</form>
</vxml>
I have wrttend code to validate the inputs in PHP file, ones call is validated, I have to redirect back to plum scratch pad, but call is getting hanged in PHP file.
The below is the code written by me... Please help me
<form id="clockin">
<field name="customerid" type="digits?length=4">
<prompt>
You have selected for Clock In.
</prompt>
<prompt>
Enter Client ID and press Hash to Submit.
</prompt>
<filled>
You entered <value expr="customerid"/>.
<prompt>
Please wait while we process your information.
</prompt>
<submit namelist="customerid" next="http://voicexcall.99k.org/TestVXML/CustomerID.php"/>
<goto next="#caretaker"/>
</filled>
<noinput>
Sorry, No Input received.
<reprompt/>
</noinput>
<nomatch>
Sorry, Invalid Client ID.
<reprompt/>
</nomatch>
</field>
<block>
Please hold for clockin.
</block>
</form>
<form id="caretaker">
<field name="caretakerid" type="digits?length=6">
<prompt>
Enter CareTaker ID and Password. Enter CareTakerID followed by Star then Password. And press Hash to Submit.
</prompt>
<filled>
You entered <value expr="caretakerid"/>.
<prompt>
Please wait while we process your information.
</prompt>
<submit namelist="caretakerid" next="http://voicexcall.99k.org/TestVXML/CareTakerID.php"/>
</filled>
<noinput>
Sorry, No Input received.
<reprompt/>
</noinput>
<nomatch>
Sorry, Invalid CareTaker ID.
<reprompt/>
</nomatch>
</field>
<block>
Please hold for clockin.
</block>
</form>
--------- PHP code----------------
<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
$customerid = $_GET[customerid];
?>
<vxml version="2.0">
<form>
<block>
<prompt>
Your Customer ID is <?php echo($customerid)?>.
</prompt>
</block>
</form>
</vxml>