Jump to content

hex characters in URL


damiantaylor

Recommended Posts

Hi guys,

I'm trying to create a form that passes parameters in the URL when submitted.

Here's the HTML code for my form:

<form name="product_filter_form" action="http://page.php?main_page=index&cPath=8" method="get">
<input type="hidden" name="main_page" value="index&cPath=8&" />

<input type="checkbox" name="Price Range[]" value="£10 -- £20" />£10 -- £20<br />
<input type="checkbox" name="Price Range[]" value="£20 -- £30" />£20 -- £30<br />
<input type="checkbox" name="Price Range[]" value="£30 -- £40" />£30 -- £40<br />

<input type="submit" value="Go" style="width: 65px" />
</form>

 

When I submit the page the URL contains 'page.php?main_page=index%26cPath%3D8%26' instead of 'page.php?main_page=index&cPath=8&'.

 

Is there a way to make this work passing the parameters without hex code?

 

 

Thank you

Link to comment
https://forums.phpfreaks.com/topic/196056-hex-characters-in-url/
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.