HTML - Single Radio Button With Multiple Search Values
Hi all,
I have a query regarding HTML Radio Buttons. On a site I have created I am use radio button to allow visitors to search fot various files. Below is the code I have used. <input type="radio" name="searchIndex" value="HMD01"/> The "HMD01" is a field in my database. The user types in txt into a textbox and when they click a search button a function checks the "HMD01" field to see if any data matches what was in the textbox and displays the results if there are matches. What I am trying to do is that if the search found no matches in that field that it would search another field in the database to find a match. I thought the code would be something like the code below but that did not work. <input type="radio" name="searchIndex" value="HMD01, PRD03"/> The "PRD03" field contains the same type of information as "HMD01" but is stored in a different table. I want to be able to search "HMD01" for a match then search "PRD03" with the same parameters. Any help would be greatly appreciated. Thanks Towsie Similar TutorialsHey guys. I've been using local storage for my form and so far it's worked great. Most of the form is simply having the user type in an answer but I have 4 questions that need to be as radio buttons. The problem is I need these radio buttons to be calculative values. I'm pretty sure I've got the 'setting values' part down but how do I 'set item' and 'get item' using local storage? Thanks in advance! Here's what I'm using: HTML Code: <input type="radio" name="length" value=".106" /> Less than 1 year<br /> <input type="radio" name="length" value="0" /> 1-2 years<br /> <input type="radio" name="length" value="-.053" /> More than 2 years<br /> HTML Code: localStorage.setItem("length", this.elements["length"].value); HTML Code: localStorage.getItem("length") The tutorial on how to make a search form with multiple search options was excellent! http://www.mediacollege.com/internet...ti-search.html However, is it possible to use radio buttons instead of a drop-down list? Can someone be kind enough to show me the code for it? Million thanks. I have been using radio buttons for customers to select amounts of my product inside of tables. I have over 10 different products/tables. How can I use a single 'Submit' button at the bottom to collect data from all the groups? Each group has its own name. When I go to the action site (in this case just 1.php), I use just a simple: echo $_POST['lavender']; which has nothing. If I move the 'Submit' button inside of the table for lavender, I get the value I expect. Please help, here is my code so far. Quote: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Ladybug Incense</title> <style type="text/css"> <!-- .style1 { font-size: 24px; color: #FF00FF; } .style2 {font-size: 24px; color: #FF0066; } --> </style></head> <body> <h1>Types of Incense:</h1> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <td bgcolor="#FFFF00"><span class="style1">Lavender</span></td> </tr> <tr> <td bgcolor="#00FFFF">Lavender incense is made from the finest lilac flowers, and has a hint of tulip.</td> </tr> <tr> <td bgcolor="#00FFFF"><form id="form1" name="form1" method="post" action=""> <p> <label> <input type="radio" name="lavender" value="10" id="RadioGroup1_0" /> 10 grams</label> ($10)<br /> <label> <input type="radio" name="lavender" value="18" id="RadioGroup1_1" /> 20 grams ($18)</label> <br /> <label> <input type="radio" name="lavender" value="25" id="RadioGroup1_2" /> 30 grams ($25)</label> <br /> <label> <input type="radio" name="lavender" value="30" id="RadioGroup1_3" /> 40 grams ($30)</label> <br /> </p> </form> </td> </tr> </table> <p> </p> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <td bgcolor="#FFFF00" class="style2">Jasmine</td> </tr> <tr> <td bgcolor="#00FFFF">Jasmine incense is made from a variety of middle eastern flowers, mainly jasmine</td> </tr> <tr> <td bgcolor="#00FFFF"><form id="form2" name="form2" method="post" action=""> <p> <label> <input type="radio" name="jasmine" value="12" id="RadioGroup2_0" /> 10 grams ($12)</label> <br /> <label> <input type="radio" name="jasmine" value="20" id="RadioGroup2_1" /> 20 grams ($20)</label> <br /> <label> <input type="radio" name="jasmine" value="28" id="RadioGroup2_2" /> 30 grams ($28)</label> <br /> <label> <input type="radio" name="jasmine" value="32" id="RadioGroup2_3" /> 40 grams ($32)</label> <br /> </p> </form> </td> </tr> </table> <form id="form3" name="form3" method="post" action="1.php"> <label> <input type="submit" name="button" id="button" value="Submit" /> </label> </form> <p> </p> </body> </html> Hi guys- Im not an expert. I am a teacher at an elementary school. I am trying to set up a webpage for our school that will allow students to view egg hatchings going on in all their classrooms. Im doing this through the use of webcams. I can get a single webcam to display in a page, but when I go for more than one, this is what happens... http://www.mrharris.org/unipage.html The second cam should be showint up, but there is obviously some issue here... Any suggestions ? Thanks ! Mike Dear all. I see this done many times on many websites (especially comic websites) where an image has a forwards and backwards arrow button, and images selected correspondingly. Ideally I want the [img src="images/001.jpg"] file name to increase by one each time. So all I have to do is add more images in ever increasing filenames to the images folder, 002.jpg, 003.jpg etc. How do I add one to a filename and then refresh the page? Can I do this in XHTML ? Many thanks. Hi, I am working in Web Application Designer in SAP and it uses XHTML as the language for creating the web items. I have a toggle button which I am able to link with a web item and use the show/hide option. Can any one tell me if I can include another web item to the same toggle button and use it to hide both the Analysis items? <bi:BUTTON_GROUP_ITEM name="BUTTON_GROUP_ITEM_1" designheight="70" designwidth="300" > <bi:BUTTON_LIST type="ORDEREDLIST" > <bi:BUTTON type="COMPOSITE" index="1" > <bi:CAPTION value="Show value" /> <bi:ACTION type="CHOICE" value="INSTRUCTION" > <bi:INSTRUCTION > <bi:SET_ITEM_PARAMETERS > <bi:cmd_item_parameters type="TEXT_ITEM" > <bi:VISIBILITY value="VISIBLE" /> </bi:cmd_item_parameters> <bi:TARGET_ITEM_REF value="TEXT_ITEM_1" /> </bi:SET_ITEM_PARAMETERS> </bi:INSTRUCTION> </bi:ACTION> </bi:BUTTON> I want to add <bi:cmd_item_parameters type="ANALYSIS_ITEM" > <bi:VISIBILITY value="VISIBLE" /> </bi:cmd_item_parameters> <bi:TARGET_ITEM_REF value="ANALYSIS_ITEM_1" /> To the same Button group. Any insight into how I should combine the instructions to the same button group? I'm trying to have my search box and search button aligned but I can't seem to get it working. Whenever I try to move one vertically, both of them end up moving and I'm all out of ideas. Here is the code: Code: <script src="http://supportforms.epnet.com/eit/scripts/ebscohostsearch.js" type="text/javascript"></script> <form action="" method="post" onsubmit="return ebscoHostSearchGo(this);"><input id="ebscohostwindow" name="ebscohostwindow" type="hidden" value="1" /> <input id="ebscohosturl" name="ebscohosturl" type="hidden" value="http://search.ebscohost.com/login.aspx?direct=true&site=ehost-live&scope=site&type=1&custid=S6281220&groupid=Main&profid=EDS&mode=bool&cli0=FR&clv0=Y&cli1=RV&clv1=Y&cli2=PT82&clv2=(PT+Academic+Journal+or+PT+Periodical+or+PT+Trade+Publication)%7e(PT+Book+or+PT+Almanac+or+PT+ebook+or+PT+audiobook)%7e(PT+Newspaper+or+PT+NEWSP+or+PT+Newswire+or+PT+WIRES)&lang=en&authtype=guest" /> <input id="ebscohostsearchsrc" name="ebscohostsearchsrc" type="hidden" value="url" /> <input id="ebscohostsearchmode" name="ebscohostsearchmode" type="hidden" value="+" /> <input id="ebscohostkeywords" name="ebscohostkeywords" type="hidden" value="" /> <div style="background-image: url('http://i.imgur.com/Wjilo.jpg'); background-repeat: no-repeat; width: 900px; height: 600px; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 9pt; color: #353535;"> <div style="padding-top: 249px; padding-left: 70px;"><span style="font-weight: bold;" ></span> <div> <input id="ebscohostsearchtext" name="ebscohostsearchtext" type="text" size="23" style="font-size: 16pt; padding-right: 340px; height: 50px;"> <button type="submit" style="border: 0; background: transparent;"><img src="http://i.imgur.com/nYPoa.png" width="145" hspace="25" alt="submit" /> </div> </div> </div> </form> What is the html code when placing multiple links on a single image? For example... the image is a tree with three leaves. Rather than having the entire image being a link, how would I set up an html code that makes each individual leave a link? ________________________________________________________________ Buying diamonds online - James allen review - Bluenile.com review - Mondera Diamonds Review - Online diamond store reviews - Engagement ring guide - Engagement ring guide What is the html code when placing multiple links on a single image? For example... the image is a tree with three leaves. Rather than having the entire image being a link, how would I set up an html code that makes each individual leave a link? Hi, I want to make a search box on my website. The thing is that I would like the search bar to be able to search on multiple search engines. For example I can type a movie in the search field and then I can select if I want to search for the movie either on google or on IMDb. I want it to look like this: http://subtext.no/kjartan/charlie/searchbox.png If anyone could help me get this kind of searchbox it would be great. Thanks in reaply. Hi I have a web form that, on submission populates a mySQL database through PHP. Each question on the form can have up to 5 different answers. What I am trying to achieve, either through radio groups or drop-down menus is to have unique values for each number so effectively ranking them. Example: Rank your favourite colours from these: Red [1][2][3][4][5] Blue [1][2][3][4][5] Green [1][2][3][4][5] White [1][2][3][4][5] Orange [1][2][3][4][5] Now for each one, I only want the user to select a UNIQUE value so that the same two numbers cannot be submitted. On submission there must be a 1,2,3,4 & 5 (ie with no two questions having the same number) Scratching my head on this one. Any help would be most welcome. Thanks Hello Am doing a web page, and I have many radio buttons, when the user selects it, 3 other radio buttons will be selected. any suggestion how to create a radio button with border top and left........... hi. i have 5 radio buttons which disable when one on which is selected! but i cant post the value to the next page! how can i understand which on one is selected?! Thank you all Hi, i was wondering how do you show certain text such when the mouse is over the radio button. I tried <input type="radio" value="test" name="test" alt="mouse over radio"> test but the word "mouse over radio" does not pop, anyone have any idea? Thanks in advance. Hey guys. Is it possible to assign a value to a radio button such as a large section of text which I have an id to. So for instance my text is <font id="someText">Words</font> I want my radio button value to correspond with that. Anyone have any ideas? -Tim i have a form that returns the user upon a number of errors (of course) - i'm able to retain the text input data (value="<?php echo $_POST['em_name'] ?>") upon return, but i don't know how to retain the radio button or checkbox data so that they don't have to recheck it if necessary. it's in html/php... can someone help? much appreciated... GN Does anyone know how to make the radio button transparent? I need to put a radio button on a textured background but I don't want the rectangle and actual button to show up on top of the background. I wanna the image working as a radio button. Thanks in advance! Does someone(s) know how to make a 'radio' button invisible but leave the associated text and VALUE? Thank you! Hi everyone, I'm a total newbie and have zero previous HTML experience (but have experience reading code). I am modifying a site to support 3 radio buttons that switch the function of a single search bar. Could you guys please help me figure this out? Warning - all of this is copy-and-paste frankencode from the source, pieced together by guesswork. It may hurt your eyes. In case you're wondering, this is simply a design prototype for a class I am taking that requires user testing. The actual web development will be done by someone else if accepted. I will learn HTML properly later on. Attached is an image of what I am thinking of. And here is the pertinent code: Code: <h2>Select the search engine that meets your needs.</h2> <form id="form1" name="form1" method="post" action=""> <p> <label> <input name="searchEngineSelection" type="radio" id="searchEngineSelection_0" value="http://uci.worldcat.org/search" checked="checked" /> <strong>Melvyl</strong></label> - Search libraries worldwide for books/music/other media.<br /> <label> <input name="searchEngineSelection" type="radio" id="searchEngineSelection_1" value="http://antpac.lib.uci.edu/search/X?SEARCH=" /> <strong>ANTPAC</strong></label> - Search and reserve material held at UCI Libraries.<br /> <label> <input type="radio" name="searchEngineSelection" value="http://www.lib.uci.edu/search-site.html?cx=009602760963559712792%3Aoglsjsxdz5m&cof=FORID%3A10&ie=UTF-8&q=" id="searchEngineSelection_2" /> <strong>Site</strong></label> - Find a specific page or information on the Library website.<br /> </p> </form> <form accept-charset="UTF-8" action="http://uci.worldcat.org/search" id="wcfw" method="get" name="wcfw" target="_top"> <input name="q" type="text" id="quicksearch_field" /> <input align="top" id="quicksearch_go" onmouseout="goBtnOff()" onmouseover="goBtnOn()" src="./Home Page - UCI Libraries_files/button-go-off.gif" type="image" /> </form> I have no idea how to do it so I am asking you gurus to help. Thanks so much for your time. |