Jump to content

form using GET question


kts

Recommended Posts

sorry:

 

<form name="form1" method="get" action="search.php">
  <div align="center">    <br>
    <input type="text" name="keywords" id="keywords"> 
    <select name="type" id="type">
      <option value="State" <?php if($stype == "State"){?>selected<?php }?>>By State</option>
      <option value="ZIP" <?php if($stype == "ZIP"){?>selected<?php }?>>By Postal Code</option>
      <option value="City" <?php if($stype == "City"){?>selected<?php }?>>By City</option>
      <option value="Pname" <?php if($stype == "Pname"){?>selected<?php }?>>By Provider</option>
    </select>
    <input type="submit" name="search">
  </div>
</form>

 

 

and the url looks like

 

search.php?keywords=&type=State&search=Submit+Query

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.