robert_gsfame Posted January 25, 2010 Share Posted January 25, 2010 I have this function _preview(){ param = document.getElementById("name").value param1 = document.getElementById("status").value window.open("preview?name=" + param + "&status=" + escape(param1),"width=200,height=200,scrollbars=1,resizable=1,top=0,left=10"); } The problem is that when i have my status let say "cool & kind", when i try to get the value which is cool&kind using $_GET then i will have this coolkind, i dont find any & How can i get cool&kind read completely?? what i have on url is this preview?name=myname&status=cool&kind thx Quote Link to comment Share on other sites More sharing options...
catherinesea Posted January 25, 2010 Share Posted January 25, 2010 You may try encoding and then decoding. http://php.net/manual/en/function.urlencode.php Thanks, --------------------- Catherine Sea http://www.dynamsoft.com http://www.scmsoftwareconfigurationmanagement.com Quote Link to comment Share on other sites More sharing options...
salathe Posted January 25, 2010 Share Posted January 25, 2010 Insted of escape, use encodeURIComponent. You'll also want to do the same for param. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.