So I'm working on a searchfunction for my webwshop and I've gotten pretty far. I've set the GET function up with the SELECT code on the search.php file. So I "pretty confidently" thought lets just quickly do the form and I'm done....
Well not so easy as it turns out. I've got this code now and I can't seem to send the data with the get. When you search something now all you get is http://buitenlandseproducten.nl/search.php?id= but nothing stored in the id.
  <div class="form-group">
    <span class="col-md-1 col-md-offset-1 text-center"><i class="fa fa-envelope-o bigicon"></i></span>
    <div class="col-md-8">
      <input id="form" name="form" type="text" placeholder="Search" class="form-control" >
    </div>
    <div class="col-md-12 text-center">
      <?php
        echo '<p>'. '<a href="search.php?id='.$_POST['form'].'">' . '<button type="submit" class="btn btn-secondary">' . 'Search' . '</button>' . '</a>' . '<br />';
      ?>
    </div>
  </div>
If someone could help me out here you'll be my hero forever! Help would be greatly appreciated!!
 
     
     
     
    