Wallpapers Forums Login

Ajax Problem Entering & Character In Form

i am using javasscript ajax form with php to enter a contact us form and users have been reporting that they send information with a url

for example:

http://www.example.com?ajac=1&code=2

i would only get http://www.example.com?ajac=1

it seem to cut off any text after teh & character

so how can i fix it?

this is how my javascript code looks like:

"&i=" + encodeURI( document.getElementById("i").value ) +


any help?
wallpaperama Mon Jun 15, 2009
change it to this:

"&i=" + escape( document.getElementById("i").value ) +


use the escape() function instead

Related Content

Information

Share

wallpaperama | Wallpapers | Forums | Terms Of Service

copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Mon May 06, 2013 (-8 GMT)
Powered by: Webune Forums V5