Jump to content

Use Radio Button to execute one script that searches multiple databases


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>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.