HTML - Multiple Values With Combobox Action
Hello,
I'm sure there is a foolishly easy solution for the following, but I don't know it! I have been toiling with this for a while with several different ways and searching google now for several hours. Can someone please tell me what I'm doing wrong here? The background is: I like how I can use a combobox to make a selection and then it automatically submits (without using a "submit" button). The following snippet of code works, except it only submits "region". (The result is something like 'www.host.com/search.php?region=1' and I would like to see 'www.host.com/search.php?order=1®ion=1&per=1'.) <form name="cmboRegion" method="GET" action="search.php?order=1 &region=document.cmboRegion.region.value&per=1"> <select name="region" onchange=cmboRegion.submit()> <option value=0 selected="selected" >U.S.</option> <option value=1>World</option> </select> </form> Thank you very much in advance... And the little hair I that haven't pulled out, thanks you too! (side note: ComboBox = Drop Down Menu) Similar TutorialsI have a webpage with a button to submit a form to a location, however I would like to be able to make this button send to as many different urls as I specify? Sorry if this doesnt make any sense, but any help is appreciated. Thank you. i went to make a "mailto" link, with a link in the body that had php variables... and then realized... wait, this wont work. is there anyway to accomplish this? mailto:?subject=hello world!&body=http://www.website.com/?article=1 & cat=1 I can't use an ampersand in my link, because the 'mailto' link itself is already using them to distinguished which part of the eMail the various content is entered in. Hello everybody, I have a problem. I have a listbox in the form and a submit button. the listbox has multiple selection enabled. Im able to select multiple values in the listbox. now when i submit this form, i want all the values selected, how can i do that. regards Mohsin iqbal 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 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 Hello, I'm new to the forums and need help with an order form for ATMs... I have 2 comboboxes and I want it to do this: When I click a selection in the 1st combobox I want it to change the items inside of combobox #2 BASED on what I select in combobox 1... Example: 1st combobox I select Triton and the 2nd combobox brings up the model #s for triton only then if I select Tranax in the 1st combobox, the model #'s for Triton erase but the model #'s for Tranax show up instead. If anyone could help me with this I'd greatly appreciate it... Thanks Ryan Hello all! Can anyone shoot me over some quick code here. What i need to do is simply have one text box and one combobox. When the person fills in the info for the 2 and clicks submit, text appears under the button (like for a thank you) and the info gets sent to my email. can anyone shoot me over some code here, i need this really bad for a part on my site, but i dont know how to do it. thanks! I made a HTML Submittion, but everytime a user adds stuff, like their name, etc. it redirects to another page. Is it possible, to let the HTML Submisision, submit the details, without it going to a different page? hi i was wondering if anyone has any idea how i can add more then one form action to the same page? i have 2 in my page but they are conflicting with each other thanks... This is how i have it in my page: Code: <form name="form" method="post" action="login.php"> form action 1 my code here..... </form> <form name="form" method="post" action="index.php"> form action 2 my code here..... </form> Hi, Is there any way to have more than one action script in a form? Thanks in advance! Geetha So, I'm building a homepage and recently exported a button created in fireworks. When I open the file in it's own window and view it works great, actions and all. However, when I insert the fireworks html file into what I've coded already for the homepage the image shows up but without actions. The javascript code was not inserted. I understand that the javascript code must be present for the rollover actions to occur but don't understand why this wouldn't be inserted when I insert the fireworks html file. Can someone clarify this for me. Must I copy this code over manually from the other html file and paste in the homepage file for it to work? I've never run into this problem before. Thanks for the help... This maybe a dumb question. I form that I use for my mailing list. I am having trouble getting the cursor to display as a text cursor over the input section and a hand cursor over the "sign up" button. Ref: http://bigdogcattle.com Here is the html code: <div class="form_contents"> <label for="email">Join our Mailing List</label> <input type="text" name="email" /> <br/><br/> <input type="submit" value="Sign Up!"/> </div> Any ideas? Thanks, Jamie ooh, its been a long time since i had to ask a question in here. i have a form that just wants to redirect to the home page, no matter what the action is. HTML Code: <form id="contactForm" method="post" action="index.phtml?file=contact.phtml" enctype="multipart/form-data"> <input class="input" name="contact_name" type="text" onfocus="if(this.value == 'Name:') { this.value = ''; }" onblur="if(this.value == '') { this.value = 'Name:' }" value="<?php echo (!empty($_POST['contact_name']) && $_POST['contact_name']) ? $_POST['contact_name'] : 'Name:'; ?>" /> <input class="input" name="contact_phone" type="text" onfocus="if(this.value == 'Phone:') { this.value = ''; }" onblur="if(this.value == '') { this.value = 'Phone:' }" value="<?php echo (!empty($_POST['contact_phone'])) ? $_POST['contact_phone']: 'Phone:'; ?>" /> <input class="input" name="contact_email" type="text" onfocus="if(this.value == 'E-Mail:') { this.value = ''; }" onblur="if(this.value == '') { this.value = 'E-Mail:' }" value="<?php echo (!empty($_POST['contact_email'])) ? $_POST['contact_email']: 'E-Mail:'; ?>" /> <textarea name="contact_message" cols="1" rows="1" onfocus="if(this.value == 'Message:') { this.value = ''; }" onblur="if(this.value=='') this.value='Message:'" /><?php echo (!empty($_POST['contact_message'])) ? $_POST['contact_message'] : 'Message:'; ?></textarea> <a href="#" class="right link1" onclick="document.getElementById('contactForm').submit()">Send</a> <a href="#" class="right link1" onclick="document.getElementById('contactForm').reset()">Clear</a> <input name="ContactSubmit" type="hidden" /> </form> and its not submitting. i think i messed up the link submits, what url shoudl be in there, when i put in index.phtml?file=contact.phtml it stays on the page but doesnt process. also, is the enctype correct for this type of post? also my doc type is xhtml strict, but i am going to have to satisfy a couple errors as far as that is concerned as well, its complaining about Quote: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag when i change the action even to itself which is /contact.phtml it still redirects to the home page. i have to ask it, what obvious fundamental have i forgotton? EDIT, ok it must be in the link submits, when i delete the href tag out of it completely, it seems to be processing. i cant figure out why the # sign was in there, whats supposed to be there for a link submit? i trued a url and that didnt work right Hey guys I am making a application form for my website and I have a few questions... After the application is complete and they hit Submit I want a message to come up and say "Thank you for the application" Then it clears all the text boxes etc to default so they know that the application is complete. How do I get that happening? Also I want the application to go to my email however I do not want the application to open a email form, at the moment I have got Code: <form action="MAILTO:contact@xin-gaming.com" method="post" enctype="text/plain"> but that opens up an email form so that they send it as if it was an email which I don't want. I want it to send it to my email but without the applicant knowing that it's going to my email. Sorry for the confusion >< Thank you in advance Hi, Is there any way to have more than one action script in a form? Regards, Geetha Can i assign a URL like index.php?page=result using the get method in a php form. Ex: HTML Code: <form action="?page=results" method="get"> <input type="submit" value="Submit"> </form> Hey guys. This is my coding, below, for a form on my site. It's just the default white color (and is too bright for my site's color scheme). Is there any way I can change the color to grey or something else?? THanks in advance!! <form action="http://www.xxx.com/xxx/xxx/xxx.php?group=2" method="post"> <div align="center" style="height:30px;"><font size="1px" color="999999" face="Arial"><b>enter your email address and your info will be emailed to you</b></font></div><div align="center" style="height:30px;"><input name="email" value=" " /></div><div align="center"><input type="image" src="buttons.jpg" size="25" value="Find password" /></div> </form> I''m making a form with three input bars. When the user presses "submit", the contents of the three inputs is put together in a string, which is then sent to a CGI program. Is there any way to add arbitrary text to that string - whether before or after the stuff gathered from the form's inputs - so that my CGI program can know which form called it? hello wizards, i am trying to create a site with image links which open a link in a new window and then the image changes. the target url of the link needs to be hidden too. the method will be repeated various times on the page. please help, i dont have any idea how to get a double function of the onclick command. any help would be great. cheers confusedidiot Dear Members, I have a Pre-designed HTML/CSS template for my site. It came with pre Designed search button. But it is not coded. I have a java script for site search. I want to add code to this button without changing my website layout. it consist of one text box and one image with title"go". What i want is when i click on "go", the search should be displayed in new window. please help me. thanx in advance Preview of Search Button: http://tinypix.in/images/5jeswvirmno9m68acm18.jpg |