woocha Posted September 30, 2007 Share Posted September 30, 2007 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> Quote Link to comment https://forums.phpfreaks.com/topic/71278-use-radio-button-to-execute-one-script-that-searches-multiple-databases/ Share on other sites More sharing options...
xylex Posted September 30, 2007 Share Posted September 30, 2007 . Quote Link to comment https://forums.phpfreaks.com/topic/71278-use-radio-button-to-execute-one-script-that-searches-multiple-databases/#findComment-358564 Share on other sites More sharing options...
woocha Posted September 30, 2007 Author Share Posted September 30, 2007 . Why don't I see your message? Quote Link to comment https://forums.phpfreaks.com/topic/71278-use-radio-button-to-execute-one-script-that-searches-multiple-databases/#findComment-358590 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.