Why does the percent symbol in a receive request interrupt my site?

I feel pretty stupid to ask about this, but I am making a form in which the user enters some input, and sometimes an input percent symbol, for example 5%. When it is passed as part of a GET request, for example:

http://kburke.org/thesis/company_x/?id=4&var1=1&ops=23255&cashflow=25000&growth=5%25&pv=100000&roe=20&profitmargin=30&roe=80&turnover=2

I get a 404 Page Not Found error. When I delete the query string line

&growth=5%25

the page is loading fine. Can someone help explain what the problem is?

Change . I tried to remove all Javascript from the page and the server is still fighting. I also just tried running it in MAMP as

http://localhost:8888/thesis/company_x/?id=4&var1=1&ops=23255&cashflow=25000&growth=5%25&pv=100000&roe=20&profitmargin=30&roe=80&turnover=2

. , . Firebug , , 404 - , , ?

+5
1

URL ENCODING. "%" URL- - .

'' %20 URL-. "%" % 25 URL-.

, , URL script, "" "5%".

URL-, , script , , - , 404. script, .

+9

All Articles