Jump to content

URL hex characters


damiantaylor

Recommended Posts

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

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.