Php Form submit if else statement
<p>I have a button that switches my data when it is clicked. When the page loads, i want it to load all of the "New" items. The "New" are loaded when the page loads, but when i submit my form to get "used" or "outdated", it still tacks on the "new" items. I am new to php. Thanks!</p>

<pre><code> &lt;form action='' method='POST'&gt;
            &lt;input type='submit' name='New' value="New"/&gt;
            &lt;input type='submit' name='Used' value="Used"/&gt;
            &lt;input type='submit' name='Outdated' value="Outdated" /&gt;
          &lt;/form&gt;
</code></pre>

<p>Here is the php.</p>

<pre><code>    if(isset($_POST['New'])){
        $sql = "SELECT name FROM table_all_items WHERE name LIKE '%New%' ";
        include '/../includes/product-layout.php';
        }

    if(isset($_POST['Used'])){
        $sql = "SELECT name FROM table_all_items WHERE name LIKE '%Used%' ";
        include '/../includes/product-layout.php';
        }

    if(isset($_POST['Outdated'])){
        $sql = "SELECT name FROM table_all_items WHERE name LIKE '%Outdated%' ";
        include '/../includes/product-layout.php';
        }

    else {
        $sql = "SELECT name FROM table_all_items WHERE name LIKE '%New%' ";
        include '/../includes/product-layout.php';
        }
</code></pre>