HTML form name replaced with wrong symbols -
i have following form
<form name="input" action="http://testdomain.com/search/?" method="get" autocomplete="off"> <input type="text" name="?wpv_paged_preload_reach=1&wpv_view_count=1&wpv_post_id=205499&wpv_post_search="> <input type="submit" id="searchsubmit" value=""> </form>
however actual url displays following search query:
/search/?%3fwpv_paged_preload_reach%3d1%26wpv_view_count%3d1%26wpv_post_id%3d205499%26wpv_post_search%3d=test
it seems special symbols such ?
, =
getting replaced special encoding characters.
my question is, how form not switch special symbols encoding characters?
thanks
the name
of input
element controls name of 1 field. browser doesn’t blindly mash , value , send server. request, can include each 1 hidden field:
<form name="input" action="http://testdomain.com/search/" method="get" autocomplete="off"> <input type="hidden" name="wpv_paged_preload_reach" value="1" /> <input type="hidden" name="wpv_view_count" value="1" /> <input type="hidden" name="wpv_post_id" value="205499" /> <input type="text" name="wpv_post_search" /> <input type="submit" id="searchsubmit" /> </form>
Comments
Post a Comment