HTML - Pulling Data From A Single-selection Menu?
Alright, I finally figured out what I need to do.
Below are two templates that are inserted in my vBulletin template design. I have modded them somewhat, but now I am stuck. I am trying to get it to look like the following: http://www.wowhq.com/forum/calendar....=2007-4-18&c=1 -- located towards the bottom of the thread. If you could help me figure out how the heck to finish coding this, it would be much appreciated. NOTE: I have created the dropdown box in the second template. What needs to happen is that data needs to get pulled from the user's answers on the calendar_rsvp_form template and displayed in two separate columns on the calendar_rsvp template. Look at the link above to see exactly how the data is output. calendar_rsvp template: Code: <if condition="!$eventempty"> <hr> </if> <if condition="$rsvp_yes"> <b>$vbphrase[calendar_rsvpd] $vbphrase[yes]: $rsvp_yes_count </b> <if condition="$eventinfo[rsvp_max_guests]"> (<phrase 1="$rsvp_yes_members" 2="$rsvp_yes_guests">$vbphrase[x_members_and_y_guests]</phrase>) </if> <table width="100%" border="0"> <tr> <th width="20">Count</th> <th width="100">Username</th> <th width="100">Class</th> <th width="100">Spec</th> <th width="200">Date Registered</th> <th>Comment</th> </tr> <tr> <th width="20"></th> <th width="100"></th> <th width="100"></th> <th width="100"></th> <th width="200"></th> <th></th> </tr> </table> </if> <if condition="$rsvp_maybe"> <b>$vbphrase[calendar_rsvpd] $vbphrase[maybe]: $rsvp_maybe_count</b> <if condition="$eventinfo[rsvp_max_guests]"> (<phrase 1="$rsvp_maybe_members" 2="$rsvp_maybe_guests">$vbphrase[x_members_and_y_guests]</phrase>) </if> <ul><if condition="$vboptions[rah_rsvp_showavatar]"><table>$rsvp_maybe</table><else />$rsvp_maybe</if></ul> </if> <if condition="$rsvp_no"> <b>$vbphrase[calendar_rsvpd] $vbphrase[no]: $rsvp_no_count</b> <ul><if condition="$vboptions[rah_rsvp_showavatar]"><table>$rsvp_no</table><else />$rsvp_no</if></ul> </if> calendar_rsvp_form template: Code: <form action="calendar.php?do=getinfo&e=$eventinfo[eventid]&day=$rsvp_day" method="post"> <input type="hidden" name="do" value="getinfo" /> <input type="hidden" name="cdo" value="rsvp" /> <input type="hidden" name="day" value="$rsvp_day" /> <input type="hidden" name="e" value="$eventinfo[eventid]" /> <input type="hidden" name="s" value="" /> <if condition="$bbuserinfo['userid'] AND $expires[0]>=0"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr><td class="alt2"> <if condition="$expires[unixdate]"> <if condition="$myrsvp"> <b><phrase 1="$rsvp_day_formatted" 2="$myrsvp">$vbphrase[calendar_rsvp_yoursvp]</phrase></b><br /> <font class="smallfont"><i><phrase 1="$expires[date]">$vbphrase[calendar_rsvp_maychangeby]</phrase></i></font> <else /> <b><phrase 1="$rsvp_day_formatted">$vbphrase[calendar_rsvp_attendquestion]</phrase></b><br /> <font class="smallfont"><i><phrase 1="$expires[date]">$vbphrase[calendar_rsvp_changeby]</phrase></i></font> </if> <br/> <else /> <if condition="$myrsvp"> <b><phrase 1="$rsvp_day_formatted" 2="$myrsvp">$vbphrase[calendar_rsvp_yoursvp]</phrase></b><br /> <font class="smallfont"><i>$vbphrase[calendar_rsvp_maychange]</i></font> <else /> <b><phrase 1="$rsvp_day_formatted">$vbphrase[calendar_rsvp_attendquestion]</phrase></b><br /> <font class="smallfont"><i>$vbphrase[calendar_rsvp_changelater]</i></font> </if> <br/> </if> <br/> <INPUT TYPE=RADIO NAME="response" VALUE="Yes" <if condition="$myrsvp=='Yes'">checked="checked"</if>>$vbphrase[yes] <INPUT TYPE=RADIO NAME="response" VALUE="Maybe" <if condition="$myrsvp=='Maybe'">checked="checked"</if>>$vbphrase[maybe] <INPUT TYPE=RADIO NAME="response" VALUE="No" <if condition="$myrsvp=='No'">checked="checked"</if>>$vbphrase[no]<br \> <if condition="$eventinfo['rsvp_max_guests']"> <i>$vbphrase[calendar_rsvp_guests_prompt] <input type="text" name="guests" id="guests" size="3" value="$myguests"> $vbphrase[calendar_rsvp_guests]. (<phrase 1="$eventinfo[rsvp_max_guests]">$vbphrase[calendar_rsvp_guest_limit]</phrase>)</i> </if> <br/>  <b>Class/Spec:</b> <select name="class"> <option value="Druid (Feral Combat)">Druid (Feral Combat)</option> <option value="Druid (Restoration)">Druid (Restoration) </option> <option value="Druid (Balance)">Druid (Balance)</option> <option value="Hunter (Beast Mastery)">Hunter (Beast Mastery)</option> <option value="Hunter (Marksmanship)">Hunter (Marksmanship)</option> <option value="Hunter (Survival)">Hunter (Survival)</option> <option value="Mage (Arcane)">Mage (Arcane)</option> <option value="Mage (Fire)">Mage (Fire)</option> <option value="Mage (Frost)">Mage (Frost) </option> <option value="Paladin (Holy)">Paladin (Holy)</option> <option value="Paladin (Protection)">Paladin (Protection)</option> <option value="Paladin (Retribution)">Paladin (Retribution)</option> <option value="Priest (Discipline)">Priest (Discipline)</option> <option value="Priest (Holy)">Priest (Holy)</option> <option value="Priest (Shadow)">Priest (Shadow)</option> <option value="Rogue (Assassination)">Rogue (Assassination)</option> <option value="Rogue (Combat)">Rogue (Combat)</option> <option value="Rogue (Subtlety)">Rogue (Subtlety)</option> <option value="Shaman (Elemental)">Shaman (Elemental)</option> <option value="Shaman (Enhancement)">Shaman (Enhancement)</option> <option value="Shaman (Restoration)">Shaman (Restoration)</option> <option value="Warlock (Affliction)">Warlock (Affliction)</option> <option value="Warlock (Demonology)">Warlock (Demonology)</option> <option value="Warlock (Destruction)">Warlock (Destruction)</option> <option value="Warrior (Arms)">Warrior (Arms)</option> <option value="Warrior (Fury)">Warrior (Fury)</option> <option value="Warrior (Protection)">Warrior (Protection)</option> </select> <br/> <br/> <if condition="$maxlength"> <table> <tr> <td><b>$vbphrase[comment]:</b><br \> <td align="right"><font class="smallfont"><i>($vbphrase[calendar_rsvp_maxlength] = $maxlength)</i></font></td> </tr> <tr> <td colspan="2"> <textarea name="comment" rows="2" cols="80">$mycomment</textarea> </td> </tr> </table> </if> <input type="submit" class="button" value="$vbphrase[submit]" /> </td></tr> </table> </form> </if> <if condition="$expires[0]<0"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr><td class="alt2" align="center" valign="center" height="75"><font size="2"><b>$vbphrase[calendar_rsvp_closed]</b></font></td></tr> </table> </if> Similar TutorialsHi Experts, I am designing a webpage where based on the year selection the associated years webtable needs to be displayed in the webpage. Pls give som suggestions and if possible the code on to how to code this using HTML and Jav Script. I know I have to write afunction and then call the fn based on the input.but need your help on this. Thanks, Bsquare I have a site that I'm wanting to sell goods on. On a particular page, I want a user to be able to click on a "purchase" link and have a popup show with a form to fill out that gets sent to me via email (Im going to be using PayPal for the processing). The url for each item is different because the last digit is the unit number of the item. Here is an example: http://www.sthompsonphoto.com/index.php?showimage=17 How can I add "17" to a field in the form when the pop-up happens? Any ideas? Thank you very much in advance! Scott T. Hey guys. Man, it's been years since I've been here. Not that much into web design these days.. but as it turns out I was asked to make someone a site.. It went well and I managed to get good bits of code from online as you do, but I have stumbled across a problem.. I have an iFrame with a calendar in it (consisting of html and some javascript) and by clicking certain dates it will change the selection of a drop down menu (full of listed dates) which is located on the main page.. Because it is not simply changing a link and instead a selection on a menu, it required javascript and after a lot of messing around I got it to work.. this was the code: <a href="javascript:void(0)" onclick ="parent.document.getElementById('datechoose').value = '11';" style="display:block;">15</a> this, when attached to a link in the iFrame will select the 11th item on the menu on the main page. It only works online for some reason, but other than that. it works perfect.. Here's the problem. My dreamweaver template has screwed up as it often does.. and it will be waay to difficult to figure out the problem. so I'm scrapping that idea.. So now I have to update the menu options on about 15 different pages every week... OR - I could put this menu on it's own page in a seperate iframe so it only needs updated once.. So essentially, how would I modify this code to link from one iframe to another. I wish it was as simple as 'target' etc. but that won't work. I've looked at similar questions online, but none of the answers seem to work.. thanks in advance Hi, This must be an easy question but a quick google did not turn up an answer for me. I have a dropdown menu and allows the user to select multiple items from the menu. After the user clicking the submit button, how do I get the user's (multiple) selections? I know I can use $POST['Name'} to get the value if there was only one selection. Thanks I'm wanting to be able to look into a certain directory and pull whatever is in there and make it a link on the page so the person that is vewing it can pull up what is in that directory. All that is going to be in the directory is going to be documents, and I don't want to have to edit my html document every time there is a new file put into the directory. Is there a way to do this in HTML? Hello all I'm writing a mash up that has drag-able objects the problem is when I drag the object too fast my browser is selecting the text behind the object. So the screen behind the object keeps flashing blue. Is there a way to disable selection for a text block or change the color of what I select. Hi everyone, I have a page that displays 40 pictures (of paintings) with a short description of each. I am trying to think of a way to enable a user to add whichever paintings they want to a list. Basically, so they do not have to scroll through the whole page to view specific paintings. I thought about converting the page from XHTML to ASP.Net and then addign checkboxes under each picture. I thought about using C# to get a list of the checkboxes checked. How do I then display a new page (or somewhere on the same page) with only the selected graphics? Any ideas would be appreciated. I am a newbie at web programming. Thank you! Marc Hello, I am semi new to HTML and was wondering if there is an easy way to adjust a price.. once a user has selected something from a selection box.. so say they pick an item for 10$ the price field then increases 10$.. same for if they downgrade price decreases. any ideas. Hey, I have a script at present which pre-loads 6 images and displays them on screen. I want a user to be able to select a checkbox next to the images so they can select which ones they want to use. On clicking continue the images selected are displayed on the next screen. Please can you help with coding for this as I am not getting very far. Thanks Hi, how can I put in a drop down menu that slides down or across from a regular text link in html? Then, when selecting one of the options, I would like it to automatically take the visitor to the page option selected? I don't want a drop down menu and then hit 'Go' type mechanism, just a slide and click type thing. i.e when the link is clicked on it would reveal a drop down list that says.. Hotel Car Rental Airport Car Park Insurance and would then link directly to the appropriate page. Thanks! Hey im making a gaming gear review site and i want to add a Selection guide to help people choose the right gear for them. Link below is something what i am thinking about but using drop down lists instead. http://www2.razerzone.com/MouseGuide/configurator/ i know how to make a drop down lists but i don't know how to link the information together also how would i produce the final result. Any help would be appreciated. Hi all, I have a form in dreamweaver that consists of a couple of textboxes and two list boxes. I would like to make listbox2 disabled until either of the bottom two selections from listbox1 have been selected. Is that possible? Thanks very much, Dan Hi.. I am having a html table with three columns and the rows are dynamic. I need to have a multiple selection of the rows and the value need to checked using javascript. I dont want any check box to be used... Can anyone help in getting this... Okay prepare for whats probably a real dumbass question, but how do you create a website where you have a header that never changes, only the body of it changes to correspond with the users selections made from the header. I can do this with frames but I don't like this and want to learn other ways. Thanks in advance hi, how can i set td just single line.for long texts, td makes new line.how can i achieve in making td single line no matter how the text is long? Okay, I am not new to HTML but am expanding my knowledge out from the basics and learning more. I have been scouring the internet for about a week trying to figure out this problem but to no avail. I need to know how to take a drop down box and have the selection open in a new window with height=600 width=600, status bar, no scroll bars and no toolbars. I already have the dropdown box setup, just need to know how to accomplish that latter. Thanks for the help, dt_gry! How can I select the correct field in my "Select form field", once I know the value from php/mysql? PHP Code: $_SESSION['job'] = "FX"; Now I want to update the form to display the selected value... HTML Code: <select multiple="true" name="field"> <option value="FL" selected="true">Flash</option> <option value="FX">Flex</option> <option value="AJ">Ajax</option> <option value="PH">Php</option> <option value="HT">Html</option> <option value="JV">Java</option> <option value="CC">C++</option> </select> SIGH I'm doing a website in which customers have to complete a form and accept contractual terms, but the client wants for them to have to click "I Accept" before the link to complete a product download can be activated and I haven't the foggiest how to do it. To which thing (I Accept or the Download link) do I apply the code and what code do I use? Can the download link act as both the Download and Submit button simultaneously? I proposed to the client that we just make the Accept button the Submit, and have the download link on the Thank You page following submission, but in the event that he doesn't go for that... THANKS! I've been laboring over this forever. I have a form that contains a drop down list; <select name="list" id="list" multiple="multiple"> When the user clicks the form's submit button I want to run a function that returns true if an <option> from that <select> object was selected and false if they forgot to make a selection. What is a simple way of doing this? I was thinking that maybe there was an object method like; if(document.form.select.optionSelected()==true) {do something; return true}; else {do something else; return false;} Hello. I was wondering if it's at all possible to have a specific checkbox or radio button checked/selected when the user gets to that page depending on the link they clicked to get to that page. For example, I have a client who wants the user to go to a single form but from different categories (rather than having a form for each), but to make sure the recipient of the email knows which category it came from, the checkbox for that category would already be checked. The user would be able to check it themselves as well, but this ensures it's already selected and creates convenience for the user. Thanks |