damiantaylor Posted March 24, 2010 Share Posted March 24, 2010 Hi, I have a form (get method) with a couple of check boxes on it, each check box has the same name: <input type="checkbox" name="price[]" value="10"> <input type="checkbox" name="price[]" value="20"> When I hit the submit button, the URL passes the square brackets as %5B%5D. The php script that processes the form still recognises it as an array so it works ok, but it looks untidy. Is there a way to make the square brackets show as [] in the URL rather than %5B%5D? Or, is there an even better way to pass the checkbox values? Thank you! Link to comment https://forums.phpfreaks.com/topic/196340-url-hex-characters/ Share on other sites More sharing options...
Daniel0 Posted March 24, 2010 Share Posted March 24, 2010 Is there a way to make the square brackets show as [] in the URL rather than %5B%5D? No, it's required by RFC 1738 (Uniform Resource Locators), section 2.2. Link to comment https://forums.phpfreaks.com/topic/196340-url-hex-characters/#findComment-1030968 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.