How form variables works part of the web address
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4162834/how-form-variables-in-web-address">How form variables in web address</a>  </p>
</blockquote>



<p>Hi,</p>

<p>How a form can have variables in address so that it works by 1 search button.
Variables are all with 3 marks as: $depairport=LO $destination=LP $day=05
so total address: http.//www.website.com/LOLP05
(London, LasPalmas, 05) and static form. </p>

<pre><code>&lt; ? php

$depairport = $_POST['depairport'];

$destination = $_POST['destination'];

$day = $_POST['day'];

$address = $depairport . $destination . $day;

?&gt;


&lt; input type="hidden" value="'.$depairport.'" name="depairport"&gt;

&lt; input type="hidden" value="'.$destination.'" name="destination"&gt;

&lt; input type="hidden" value="'.$day.'" name="day"&gt;


&lt; form action="&lt; ?php echo $address; ? &gt;" method="post"&gt;


&lt; a href="http://www.website.com/ &lt; ?php echo $address; ? &gt;" &gt;&lt; input type="submit" value="SEARCH"&gt;&lt;/a&gt;
</code></pre>

<p>thank you sir !</p>
