We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

posting php ... var not declared for some reason

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
brent.russell
Posts: 50
Joined: Wed Oct 04, 2006 1:34 pm
Location: SOCAL
Contact:

posting php ... var not declared for some reason

Post by brent.russell »

I am having issues trying to get the variable phoneNumber posted to my php script. Can anyone help me out with this? I am trying to use an example but input my varriables and it is still not working. I get the following error:
Validation Results:
Error at line 144, char 108
Message: Attribute 'phoneNumber' is not declared for element 'submit'

Code: Select all

<var name="phoneNumber" expr="0000000000" />

<!-- Disconnect Process -->  
 <form id="processDisconnect">
    <field name="pin" type="digits">
      <prompt>Please enter your pin</prompt>
    </field> 
 	  <filled>
      <submit next="http://mysite.com.au/unsubscribe_ivr/index.php" phoneNumber="phoneNumber" method="post"/>
	  </filled>   
 </form> 

brent.russell
Posts: 50
Joined: Wed Oct 04, 2006 1:34 pm
Location: SOCAL
Contact:

Post by brent.russell »

Firgured this one out on my own....

If I have the variables:
phoneNumber
zipCODE
firstNAME
lastNAME

then my submit needs to look like this:

<submit next="http://mysite.com/index.php" namelist="phoneNumber zipCODE firstNAME lastNAME " method="post"/>

If you notice, all variables that are space delimited in the namelist parameter will be posted to the url. On the php side you will have to catch the following:
$_POST['phoneNumber'], $_POST['zipCODE'], $_POST['firstNAME'], $_POST['lastNAME']

Post Reply