Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>if you don't want to use <code>$_GET</code> superglobal because of the url extension that it comes with try using <code>$_POST</code> instead. It will not have a url extension and it can still store values that you can later retrieve. Just be sure to change your <code>method</code> to equal <code>POST</code> instead of <code>GET</code>.</p> <p>So the code for the form tag would change to:</p> <pre><code>&lt;form action="vehicles.php" method="POST"&gt; </code></pre> <p>And you can later access it by (for example):</p> <pre><code>echo $_POST['brand']; </code></pre> <p>or</p> <pre><code>echo $_POST['model']; </code></pre> <p>as well, you probably want to add a value param to the values that you have in your <code>option</code> tag.</p> <p>EDIT- I've added this new section since you don't want to use POST even though I think you should.</p> <p>You can stay with the <code>GET</code> method by doing this line of code:</p> <pre><code>&lt;form action="vehicles.php" method="GET"&gt; &lt;span&gt;Marca: &lt;select name="brand"&gt; &lt;option value="none" selected&gt;-&lt;/option&gt; &lt;option value="Volkswagen"&gt;Volkswagen&lt;/option&gt; &lt;option value="Renault"&gt;Renault&lt;/option&gt; &lt;option value="Peugeot"&gt;Peugeot&lt;/option&gt; &lt;option value="Fiat"&gt;Fiat&lt;/option&gt; &lt;/select&gt; &lt;/span&gt; &lt;span&gt;Modelo: &lt;select name="model"&gt; &lt;option value="none" selected&gt;-&lt;/option&gt; &lt;option value="206"&gt;206&lt;/option&gt; &lt;option value="Suran"&gt;Suran&lt;/option&gt; &lt;option value="Passat"&gt;Passat&lt;/option&gt; &lt;option value="Punto"&gt;Punto&lt;/option&gt; &lt;/select&gt; &lt;/span&gt; &lt;input type="submit"&gt; &lt;/form&gt; </code></pre> <p>Let me know if that helps</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload