07-27-2004 12:23 AM - edited 03-13-2019 05:47 AM
Hi,
I've just started to develop some basic XML applications using php, and stumbled on a problem passing arguments to an application.
When I create a SoftKeyItem (inside a CiscoIPPhoneDirectory) with an URL that contains just one parameter, it works:
<SoftKeyItem>
<Name>>></Name>
<URL>http://server/test.php?page=2</URL>
<Position>3</Position>
</SoftKeyItem>
However, with an URL that passes more than 1 parameter, the phone (both 7912G and 7940) just displays "Not Available":
<SoftKeyItem>
<Name>>></Name>
<URL>http://server/test.php?page=2&name=BA</URL>
<Position>3</Position>
</SoftKeyItem>
Is this a bug, or is this not the intended way of passing arguments to an application?
I suppose it is a bug, since the phone creates an URL like this itself, when you submit a CiscoIPPhoneInput containing multiple InputItem's...
Thanks in advance for any help!
Herbert
Solved! Go to Solution.
07-27-2004 06:21 AM
The problem you are experiencing is probably because you didn't escape the ampersand that joins your URL parameters, which is mandatory in XML.
See this link (bottom of the page):
Replace your use of ampersand with the escape sequence noted in the table (ampersand followed by the string amp;) and that should clear it up.
07-27-2004 06:21 AM
The problem you are experiencing is probably because you didn't escape the ampersand that joins your URL parameters, which is mandatory in XML.
See this link (bottom of the page):
Replace your use of ampersand with the escape sequence noted in the table (ampersand followed by the string amp;) and that should clear it up.
07-29-2004 11:23 PM
Thanks, so it was a bug... in my code :)
thanks a lot!
Herbert
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide