...

View Full Version : Help about send string via POST



lamletoi
05-21-2012, 06:58 PM
Hi all,
I have a problem when trying to send data through POST method.


<select name=\"state\">
<option ".($state eq 'NER' ? 'SELECTED' : '').">NEW,ESTABLISHED,RELATED</option>
</select>

when i submit, the data was:


&state=NEW%2CESTABLISHED%2CRELATED&

Some special character was inserted.How do i preserve the origin string?

VIPStephan
05-22-2012, 12:08 PM
You inserted the special characters yourself. http://en.wikipedia.org/wiki/Percent-encoding#Percent-encoding_in_a_URI



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum