<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
?>
<vxml version="2.0">
<form>
<var name="counter" expr="0"/>
<field name="bam1" type="digits?length=3">
<prompt>
Please enter some digits.
</prompt>
<filled>
<prompt>
You have entered <value expr="bam1"/>.
</prompt>
</filled>
<noinput>
<assign name="counter" expr="++counter"/>
<prompt>
You have not entered anything.
The nomatch noinput counter <value expr="counter"/>
</prompt>
</noinput>
<nomatch>
<assign name="counter" expr="++counter"/>
<prompt>
You entered the incorrect amount of digits.
The nomatch noinput counter is <value expr="counter"/>
</prompt>
</nomatch>
</field>
<field name="bam2" type="digits?length=3">
<prompt>
Please enter some digits.
</prompt>
<filled>
<prompt>
You have entered <value expr="bam2"/>.
</prompt>
</filled>
<noinput>
<assign name="counter" expr="++counter"/>
<prompt>
You have not entered anything.
The nomatch noinput counter is <value expr="counter"/>
</prompt>
</noinput>
<nomatch>
<assign name="counter" expr="++counter"/>
<prompt>
You entered the incorrect amount of digits.
The nomatch noinput counter is <value expr="counter"/>
</prompt>
</nomatch>
</field>
</form>
</vxml>