html - Issues in working of PHP form submit with GET data -
i working php forms. opening form tag looks this:
<form name="adv_search_form" action="<?php echo $targetpage; ?>" method="get">
this generated next html:
<form name="adv_search_form" action="index.php?&rel=common_listing&module=company&sort_option=&search_option=&show_max_row=15" method="get">
when submit form, land on url:
http://localhost/projectcode12may2014/ampanel/index.php?field%5b%5d=broker_name&adv_operation%5b%5d=like&value%5b%5d=&query_type%5b%5d=and&submit=submit
but want
?field%5b%5d=broker_name&adv_operation%5b%5d=like&value%5b%5d=&query_type%5b%5d=and&submit=submit
should appended action url on landing page. can suggest method doing this? in advance.
if using method="get"
parameters in action overwritten. in transmitted.
you need add together hidden fields these values. example:
<input type="hidden" name="module" value="company" />
php html forms
No comments:
Post a Comment