jquery - appending query string in form action -
my question might seems odd, caught in situation..
can utilize form action in way??
<form action="http://www.example.com/cread.php?inmid=5445&affid=545&p=http://www.book.example2.com/search.do" method="get" id="form1">
what trying is
user fill formdata along inmid, affid , p passed example.com/cread.php
example.com/cread.php process
example.com forwards form info p=example2.com/search.do
example2.com/search.do rest...
i tried using inmid, affid
, p
hidden inputs,but due url encoding issue, example.com/search.do can not process form data..
this form action isn't working me..
can tell me how can accomplish purpose??
thnks help
ps
i dont have command onexample.com
or example2.com
if utilize tracking params hidden, url encoding , decoding ( cant control) create problem...however, if utilize form action partial query string alongwith form data, works
use hidden inputs instead of starting query string yourself.
<input type="hidden" name="hiddeninput" value="value goes here" />
i think reason have isn't working because you've started query string ?
and you've added values. however, 1 time form submitted, ?
, form info going appended whatever have in action
attribute.
so effectively, query string started twice, there 2 ?
's may not able interpreted server correctly.
the query string generated be: eg: formsubmit.php?iaddedthis=true?iwasaddedbythebrowser=true
i'm open correction though.
jquery html forms encoding
No comments:
Post a Comment