I have this:
echo '<input type="text" id="address" name="address" value="'.$address.'" />';
When you enter your adress (my+adress) in search form and hit button “Search” I want to search automatically add cityname and country in link, to link look like …/index.php?address=my+adress+citiname+county.
Thanks in advance!
So just use a
method="get"in the post field and it will dump the fields to the URL?If you don’t want to add in the fields, you will need to parse the
myAddressfield and use ameta redirectto populate the data you parsed from their address.