Jump to content

IE URL Encoding


Omzy

Recommended Posts

This isn't strictly PHP, but perhaps there is a PHP function that might help with this..

 

On a GET form submission, IE seems to output the page URL with certain characters encoded to their ASCII equivalent, for example if you have a group of checkboxes as an array (name="location[]").

 

In IE it's output in the address bar as:

 

search.php?location%5B%5D=whatever

 

In Firefox/Chrome it's output as it should be (search.php?location[]=whatever)

 

For the sake of consistency and neater looking URLs, how can I fix this issue in IE? I tried the urldecode() function on the form action but that didn't work. Anything to do with the enctype attribute on the form?

Link to comment
https://forums.phpfreaks.com/topic/183872-ie-url-encoding/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.