Jump to content

Use Radio Button to execute one script that searches multiple databases


woocha

Recommended Posts

Hey Guys...I have never toyed with radio buttons before, but I want to use them in my header, so here goes my question.  I need to know how to have a user click which aread of the site he want to searchand execute that search....So if the user clicks on the radio button for web the script searches Google, if the user clicks on the photos button, then the scripts searches the photos database. 

 

I am really new to PHP and maybe this is way over my head, but I came here to hopefully get [pointed in the right direction.

 

Any thoughts?

 

 

 

My HTML code looks like this:

<form method="post" action="?">
      <span>
      <input type="radio" name="search1" value="web" checked="checked" />  Web 
      <input type="radio" name="search1" value="woocha" /> Woocha 
      <input type="radio" name="search1" value="photos" /> Photos 
      <input type="radio" name="search1" value="auctions" /> Auctions 
      <input type="radio" name="search1" value="classifieds" /> Classifieds
      </span>
      <input type="text" name="search" value="Enter your search..." class="box" onFocus="return autoClear(this,'Enter your search...');" />
      <input type="image" name="submit" src="http://www.woocha.com/images/search_butt.gif" class="button" />
      </form>

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.