HTML - Html Form Goto
Hey All,
I currently have a single field form on a website: Code: <fieldset> <legend><b>Login</b></legend> Please enter the staff password into the below field in order to gain access to the staff area. <br><br> <form name="input" action=""> Password: <input type="text" name="password"> <input type="submit" value="Submit"> </form> I'd like to make it so that when the user enters anything into said field, he is taken to that page .html. For example, should one enter "hello" into the field and click submit, one is taken to "hello.html". Is this at all possible? Thankyou for your help. Similar TutorialsI've been having trouble with targeting an iframe with a goto form. Let me show you what I've done. <form name="openlocation" target="PicFrame"> <input type="text" name="href" value="http://"> <input type="button" value="Go To" onClick="location.href=document.openlocation.href.value;; "> </form> <iframe name="PicFrame" src="blank.htm"></iframe> I'm trying to get allow the user to submit the url of a photo and then load that page into my iframe. So far the only thing it does is open up the url in the same window and does not target the iframe at all. Also I am using FF. OK I have a home page that has several inline frames. All the action happens in one of the frames in the middle. Now what I want is when they click on a link in this main pane it loads the new page in said frame, but moves the browser back to the top of the parent frame, which is still home.html. The site I'm working on can be accessed at http://www.awardworks.com I tried using an onLoad with a java function that performs: window.scrollTo(0,0); but this didn't work I am trying to figure out a script or how to make a form that will redirect the user to a certain folder on the server depending on what they typed in the text box to see an example of what I am trying to do go to http://www.aspenimage.com/order I have googled all over and found nothing Thanks in advance for the help Dan I am trying to do a Firefox add-on that should simplify web surfing. But I encountered a problem : There is a link that isn't keeping the same path by changing the URL (it changes a number at the end of the URL) so every time the program meets this link, it stops. The Macros of the software I am using looks like this (with a single link) : ex: VERSION BUILD=6060801 RECORDER=FX TAB T=1 URL GOTO=http://www.htmlforums.com/newthread.php?do=newthread&f=4 but let's suppose, next time I want to enter http://www.htmlforums.com/newthread....=newthread&f=4 the URL changes into http://www.htmlforums.com/newthread.php?do=newthread&f=19 My question is : How can I rewrite the code of the macros so that the software can auto detect the correct URL between many URLs ? Is there a possibility of entering URL GOTO : the range of the URL ? Thank you in advance ! script completed, thx Hello, I am new to the forums, and i have been using HTMl for quite some time now. I was just wondering, i have a custom pc building form, and as of right now i am using javascript and all the items are stored in the HTML of the BODY tag. I was wondering if there is a way i can modify the form, and have the pull down items populate from an external database. eg. Current HTML Code: <table class="cpu_content" width="800" align=center id="table1"> <tr> <td> </td> <td></td> <td><strong>Qty</strong></td> <td><strong>Total</strong></td> </tr> <tr class="lineitem"> <td>CD-ROM Drives:</td> <td> <select name="prod_1" class="quoteselect" onchange="updatePrice(1, this.value)"> <option value="Select:0" selected>-- Select --</option> <option value="Asus:0">--ASUS-- </option> <option value="Asus52xCD:20.0">Asus 52x CD-ROM Drive ($20.00)</option> <option value="Asus52XDBL:20.0">Asus 52x CD-ROM Drive (Black) ($20.00)</option> <option value="LG:0">--LG--</option> <option value="LG52xCD:20.0">LG 52x CD-ROM Drive ($20.00)</option> <option value="LG52xCDBL:20.0">LG 52x CD-ROM Drive (Black) ($20.00)</option> </select> </td> <td> <select name="qty_1" id="qty_1" onchange="calculateSubtotal()"> <option value="0">0</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> </select> </td> <td> <input id="st_1" type="text" size="5" class="subtotal" value="0.00" readonly name="T1"> </td> </tr> .....More items here.... ...Tax/Shipping/Totals will go here.... So my question would be, how could this code be modified to use a dabase to store the items for the pulldown menus, if this is possible? Thanks for reading, Kaashif Hello, With a HTML form, is there anyway I can allow the user to send the form to my email without it opening up a email program? I currently have this... HTML Code: <form method="post" action="mailto:support@huntswebdesigns.co.uk"> If it is possible, what would I need to change in this? Cheers guys. Is any one willing to make me a small form for my contact us page in html? All i want is a box that asks there email and then a larger box below were they can type there message and then when they click on send i want it to send me the infomation to my email at info4football_programmes@yahoo.co.uk Thanks Hey Guys... need some help with a form. It seems like it should be a basic function but i can not get it to work. All I need a search form that will take whatever is entered to edit a url for instance http://www.mysite.com/<searchbox>/index.html so if i typed in hello into my search box it would open http://www.mysite.com/hello/index.html if you could help me with this it would be great Hi guys, Ok so I am creating a form for a business and what needs to happen is there is a form full of questions, using both check boxes, radio buttons and text areas and then it gets sent to a email but when it gets sent to the email I need all the data entered to be placed next to each other in the email. Eg: Form Type of car: _________ Model: _________ kms driven: _________ then in the email I'll recieve: car model, 1999 model, 50,000km can anyone help with this at all? thanks in advance. What do i do? What im trying is the action is "http://website.com/images/" but what im trying to do is where the user can enter its own text like "Image1.png" so when they do hit submit. It will enter the action= "http://website.com/images/" in the address bar and then what ever the user typed in it will followed right behind it for example ="http://website.com/images/image1.png" Code: <form name="input" action="http://website.com/images/" method="get"> Search: <input type="text" value="" /><br /> <input type="submit" value="Submit" /> </form> This is what i have so far. Not entirely sure its correct. Because it always have the "?=" Before the text so it will always get the address wrong. Does anyone know what i mean. Or is it even possible to have something were they don't have to enter the ".png" the code will insirt it at the end. I have a Website which I need put on a CD to send out to customers. I am looking for a way of being able to send the contents of an HTML feedback form to a mail address. Bear in mind that the Form will be on a CD and will have no server side support (CGI, PHP etc). I am rapidly coming to the belief that this cannot be done!!!! Can anyone help The problem I am having with it is the mailto part. Whenever I click send, it automatically opens Microsoft Outlook. Here is what I need: 1) Make it so that it sends to the e-mail I specify without opening Microsoft Outlook. 2) Make all the fields required to be sent. Code: <title>multiple-choice quiz form</title> </head> <body bgcolor=#ffffff> <h3><font size=6><center>Rate Your Support</center></font></h3> <h3><center>Please remember that we are not owned by or affiliated with Facebook. We therefore can not edit or change your profile. We cannot edit wall-to-walls, inbox messages, deactivated profiles, groups, fan-pages, notifications, settings, or Facebook Chat.</center></h3> <form method="mail" action="mailto:jobrewer@packer.edu?subject=Rate Your Support" enctype="text/plain"> <p>1. Who helped you with your problem?:<BR> <input type="radio" name="1.The staff member who helped me with my issue was" value="maison"> funnytim<BR> <input type="radio" name="1.The staff member who helped me with my issue was" value="quatre"> Lightning Yoshi<BR> <input type="radio" name="1.The staff member who helped me with my issue was" value="soleil"> The Listener<BR> <p>2. Was your problem responded to in a reasonable amount of time?<BR> <input type="radio" name="2. The word which means fish is" value="maison"> 1 - 72+ hours<BR> <input type="radio" name="2. The word which means fish is" value="valise"> 2 - 48-71 hours<BR> <input type="radio" name="2. The word which means fish is" value="soleil"> 3 - 36-47 hours <BR> <input type="radio" name="2. The word which means fish is" value="poisson"> 4 - 24-35 hours<BR> <input type="radio" name="2. The word which means fish is" value="poisson"> 5 - 24- hours<BR> </p> <p>3. Was your question properly diagnosed by our staff?:<BR> <input type="radio" name="3. The word which means suitcase is" value="renard"> No<BR> <input type="radio" name="3. The word which means suitcase is" value="valise"> Barely<BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> Somewhat<BR> <input type="radio" name="3. The word which means suitcase is" value="poisson"> Mostly<BR> <input type="radio" name="3. The word which means suitcase is" value="poisson"> Fully<BR> </p> <p>4. Were you given any type of directions to solve your problem?:<BR> <input type="radio" name="3. The word which means suitcase is" value="renard"> No<BR> <input type="radio" name="3. The word which means suitcase is" value="valise"> Somewhat<BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> Yes<BR> </p> <p>5. Did your supporter type in complete sentences, use correct grammar, punctuation, and spelling, etc.?:<BR> <input type="radio" name="3. The word which means suitcase is" value="renard"> No<BR> <input type="radio" name="3. The word which means suitcase is" value="valise"> Somewhat<BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> Yes<BR> </p> <p>6. Was your topic locked before the issue was resolved?:<BR> <input type="radio" name="3. The word which means suitcase is" value="renard"> No<BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> Yes<BR> </p> <p>7. Did you receive the solution you needed?:<BR> <input type="radio" name="3. The word which means suitcase is" value="renard"> No<BR> <input type="radio" name="3. The word which means suitcase is" value="valise"> Barely<BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> Somewhat<BR> <input type="radio" name="3. The word which means suitcase is" value="poisson"> Mostly<BR> <input type="radio" name="3. The word which means suitcase is" value="poisson"> Fully<BR> </p> <p>8. Would you recommend us to a friend?:<BR> <input type="radio" name="3. The word which means suitcase is" value="renard"> No<BR> <input type="radio" name="3. The word which means suitcase is" value="valise"> Maybe<BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> Definitely<BR> <p>9. On a scale of 1-10 (with 10 being best), what would you rate Facebook Forum Support?:<BR> <input type="radio" name="3. The word which means suitcase is" value="renard"> 1/10; I didn't get any support whatsoever<BR> <input type="radio" name="3. The word which means suitcase is" value="valise"> 2/10 <BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> 3/10 <BR> <input type="radio" name="3. The word which means suitcase is" value="renard"> 4/10<BR> <input type="radio" name="3. The word which means suitcase is" value="valise"> 5/10<BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> 6/10<BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> 7/10 <BR> <input type="radio" name="3. The word which means suitcase is" value="renard"> 8/10<BR> <input type="radio" name="3. The word which means suitcase is" value="valise"> 9/10<BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> 10/10; The support was very useful<BR> </p> <p>10. <br><form method="post" action=""> <textarea name="comments" cols="40" rows="5"> Enter your other comments here about your experience with our Facebook Support System... </textarea><br> </form> <br> <br> <br> <br> <input type="submit" value="Send Form"> <input type="reset" value="Clear Form"> </form> </body> </html> hi guys i just added a protection to my forum - which look like this just a simple hyperlink thing can sm1 help me to modify it into to look into like this- regards ian I am storing all of my shopping cart information in a db and then retrieving whenever someone wants to checkout. I want all the products to be transferred to google checkout as soon as i click their checkout button. for some reason when i click the image that is supposed ot take me to google checkout it begins to download the picture of the google checkout to my computer? it worked until i tried having it save more than 1 product.. here is my code PHP Code: $cart_set1 = get_cart($cookie_id); while($row = mysql_fetch_array($cart_set1)) {?> <?php $number=1; ?> <form method="POST" action="https://sandbox.google.com/checkout/api/checkout/v2/checkoutForm/Merchant/722419656118816"> <input type="hidden" name="<?php echo "item_name_".$number; ?>" value="<?php echo $row['product_name']; ?>"/> <input type="hidden" name="<?php echo "item_quantity_".$number; ?>" value="<?php echo $row['qty']; ?>"/> <input type="hidden" name="<?php echo "item_price_".$number; ?>" value="<?php echo $row['product_price']; ?>"/> <input type="hidden" name="<?php echo "item_currency_".$number; ?>" value="USD"/> <input type="hidden" name="<?php echo "ship_method_name_".$number; ?>" value="UPS Ground"/> <input type="hidden" name="<?php echo "ship_method_price_".$number; ?>" value="10.99"/> <input type="hidden" name="<?php echo "item_description_".$number; ?>" value="<?php echo $row['size']; ?>"/> <input type="hidden" name="tax_rate" value="0.0875"/> <input type="hidden" name="tax_us_state" value="NY"/> <input type="hidden" name="_charset_"/> <?php $number++; ?> <?php } ?> <input type="image" name="Google Checkout" alt="fast checkout through google" src="http://checkout.google.com/buttons/checkout.gif?merchant_id=722419656118816&w=180&h=46&style=white&variant=text&loc=en_US" height="46" width="180"/> </form i have a working order form on my website. the problem is i have 300 items in the form and when someone submits the form, i get all 300 items emailed to me, when all i want is the items orders. example: person orders itemC only i get in the email: itemA: itemB: itemC:1 itemD: etc x 300 when all i want in the email is: itemC:1 is that possible? Hey I am building a form and I would like to record the person's ip when they sumit the form for security reasons, is there a code for that. I went to a few sites and the codes did not work. Hi, I have set up a basic HTML form that asks a customer a series of questions. My question is, using PHP or similar can anybody help witht he code to, Provide basic data validation, all fields require a response and then to email the data direct to me without using the clients email software. All the internet help I can find refers to put functions in seperate files, but I can't do that as I don't have access to the host servers! I intend to put a capatcha on it to prevent spamming, again this seems to rely on other php files too. Is there away that you can create functions that are called, but are not in seperate files? Any help would be greatly received. - Jason Hi I have created a form in HTML that will ultimately use php to send it's content. Rather than clutter the page I have placed the titles of the fields within themselves, which the user will then overwrite. How can I make it so when the user clicks or tabs into the fields the titles disappear and (if it's possible) reappear if the user clicks/tabs out again without entering their own info. Is it going to be a bit of clever js? The test link is he http://www.dnco.com/contactform.html or my relevant code follows. Please note that it uses a bit of CSS to define the look of the fields: HTML Code: <div style="position:absolute; top:0px; left:0px"> <input type="text" class="formelement" name="name" value="Your name" /> </div> <div style="position:absolute; top:30px; left:0px"> <input type="text" class="formelement" name="email" value="Your email" /> </div> <div id="comments" style="position:absolute; top:60px; left:0px"> <textarea name="comments" class="formelement_multiline" value="Comments">Comments</textarea> </div> <div id="submit" style="position:absolute; top:170px; left:0px"> <input type="submit" value="Send" class="formbutton"> </div> HI i'm creating an html form which will be posted to a php file. The problem is the are multiple input fields which need to have the same name/id. If they have the same name or id what will be submitted to the php file, will it just append one value to the other? Does it make a difference if i use id or name? Thanks |