<?xml version="1.0"?>
<vxml version="2.0">
<form>
<field name="customer_id" type="digits?length=5">
<prompt>
Please enter your customer identification number.
</prompt>
<filled>
<prompt>
Thank you.
</prompt>
<!-- submit to a script that doesn't exist -->
<submit next="process_customer.php" namelist="customer_id"/>
</filled>
<catch event="nomatch noinput" count="1">
<!-- this code executes for count 1 and 2, the FIA looks at all of the matching <catch> elements and finds the highest count value that is <= the current count-->
<prompt>
Your input was not valid. Your customer identification number is the five digit number on your membership card.
</prompt>
<reprompt/>
</catch>
<catch event="nomatch noinput" count="3">
<prompt>
It seems you are having difficulty with your customer identification number. Please call the number on the back of your membership card. Goodbye.
</prompt>
<exit/>
</catch>
<catch event="error.badfetch">
<prompt>
I'm sorry, it appears we are having technical difficulties. Please try your call again later.
</prompt>
<exit/>
</catch>
</field>
</form>
</vxml>