HTML - How Do I Make A Text Box With A Set Answer?
I want to create a form with a text box that has a specific answer. If the correct answer is typed in, the submit button redirects to one page. If the wrong answer is typed, the form redirects to another page.
Is there any way to do this? Similar TutorialsHelp! How to put text in input fields? -------------------------------------------------------------------------------- Hi everyone, What I am asking is more complicated than the thread title says. Can someone please tell me how, or post some code to show how I can make input fields with these properties: 1. Make text appear in an input field whilst off focus but dissapear whilst on focus, re-appear again if put back on focus. 2. The user can type text in the field and edit it and when the input field is off focus the text he wrote remains there. 3. If the user completely erases the text he wrote and puts the input field off focus the default text (stated in 1.) re-appears. 4. Make a password input field without the default text (1.) being displayed as stars (hidden charaters) with same features as 1. , 2. , and 3. ofcourse. Can anyone please help me?... Evan Hi, this is appleguy.......6142! I was wondering how to make a text box display something somewhere else for example (This does not work)---- ------------------------------------------------------------------ [page1.html] (Pretend this is a text box)>>> [Text Text Text...] [page2.html] -This is the text displayed in the text box->>>Text Text Text... HOW DO I DO THAT PLEASE HELP!! I would like to have some text and/or image appear on a page. And at a date/time have it disappear/expire. Is this possible? Is it html or a script? Any direction would help THANKS! Dave read title I need to have this text in html. I need only the text, no table. My problem was, that when i changed the fontsize, a new paragraph was created. But i want it on one line. Thanks for your help. Hello, I want to create a large text box. I have the following code: Code: <td class="CellInput"> <input type="text" size="150" textarea style="height:200px" name="information" id="informationId"> And here is the relevant CSS: Code: .CellInput { background-color: white; border: none; color: black; font-family: verdana,Arial,tahoma,sans-serif; font-size: 9.0pt; font-style: normal; font-weight: normal; margin: 0px; padding: 2px 2px; text-decoration: none; text-align: left; vertical-align: bottom; white-space: normal; } .CellInput INPUT, .CellInput SELECT, .CellInput TEXTAREA { border: none; margin: 0px; padding: 0px; } The box that my code generates is nice and tall...but you can only type in the first horizontal row...you can't press enter and go down to lower rows. I don't know whether there's something wrong with the box, and/or there's something somewhere preventing me from using enter. Does anyone have any ideas on how I could modify the above to make a nice, tall, usable box? I don't see anything that specifies height in the CSS above! I am still an HTML newbie, so it is very possible (probable?) that I am missing something obvious. Thanks in advance! My code: Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=windows-1250"> <meta name="generator" content="PSPad editor, www.pspad.com"> <title></title> </head> <body> <script type="text/javascript"> value1 = prompt("an article of clothing", ""); value2 = prompt("plural noun", ""); value3 = prompt("a kind of relative ", ""); value4 = prompt("an animal ", ""); value5 = prompt("a plural noun", ""); document.write("This tale is is about a girl called Little Red Riding Hood, after the red " + value1 + " she always wears. The girl walks through the woods to deliver " + value2 + " to her sick " + value3 + ". A " + value4 + " wants to eat the girl but is afraid to do so in public. He approaches the girl, and she naively tells him where she is going. He suggests the girl pick some flowers, which she does. In the meantime, he goes to the " + value3 + "'s house and gains entry by pretending to be the girl. He eats the " + value3 + ". When the girl arrives, he eats her whole too. A hunter, however, comes to the rescue and cuts the " + value4 + " open. Little Red Riding Hood and her " + value3 + " emerge unharmed. They fill the wolf's body with heavy " + value5 + ", which kill him.") </script> </body> </html> Thanks BillyGalbreath showed how to do it. http://atomicwm.50webs.com/index.html I started my website yesterday but this is only my 2nd time making a layout. I want to make the dog's paws go over the text in the box when it reaches that far. I have a separate, transparent picture of the dog saved, but I don't know how to put it up/position it. Can someone help me? Sorry that I didn't explain this very well. What code do I need to place some text in some type of table or container? thanks I want to make a text box that looks like so: http://benjaminpotter.org/prototype.jpg and I need it to expand no matter how much text I place in there... I have got these 3 images: http://benjaminpotter.org/top.png http://benjaminpotter.org/middle.png http://benjaminpotter.org/bottom.png I need some way of making the middle one repeat itself down the x axis, so that the box can hold infinite text. Can anyone help me here? I just need a basic code for this. For what I presume is basic anyway. On MySpace, I'll insert links, and MySpace will automatically make it a hyperlink, but won't allow you to visit certain links that you click on. How do you prevent it from being a link and so that it's just text? I thought <nohtml> worked, but apparently it doesn't exist. Would help me out loads, thanks, Sam/. I'm using a jquery plugin that creates a grid view using a table. Inside the cells i have text areas that i'm manually sizing using the rows attribute, to fill the td. It's not working very cleanly though. Does anyone know of a way to get text areas to automatically size themselves to a containing td? thanks, max I was wondering how to make text bold, italicized, and underlined using css. I am new at css. Thanks 4 the help! I've looked all over the web and can't find an effective way to do this. Can someone please help? I need to make text drop down menus when you mouseover my links. This is a perfect example: http://www.stpatrick.org/ Thanks a lot! I am trying to move my title text further to the right. However, when I do (by adding more  , the title breaks into another line instead of moving further to the right. I have tried manipulating the margin px, but it isnt changing. I am not familiar with manipulating floating text. How do I accomplish this? Here is my current code: <td align="center" valign="top"><table width="655" border="0" cellspacing="0" cellpadding="0"> <div style="background:url(/offices.jpg);margin:0;"><br/><br/><span style="float:right;margin:0px 150px 198px 0px;"><font type="Arial Narrow" size="5"><b> &nbs p; &n bsp; <font color="#4E4848">My title</font></b></font> </span> Hello all, I'm a newb at html, just started some basic coding last week. I've made my first site, though as you can see, the images and text (even if it's a placeholder right now) aren't lined up, and I'm not sure how to tell it to do that. Anybody with more expertise understand my situation, and how to fix it? Thanks! http://elliottetzkorn.com Hey guys, im completely new to web development, as in, i've literally never tried it before so im hoping you guys can help me I have a local HTML and, basically, it has 2 text boxes and one button. now the button currently takes you to another page, but i want that button to copy the text from the second text box to my clipboard, so i can paste it into another document i have adobe dreamweaver cs5 but im willing to pick up any other software i might need to pull this off all help appreciated! Hi All, Nice site BTW, my problem is i want to add some text with a background colour behind it but i want the background colour to stretch the full width of the page ? Can anybody help me out Thanks HELP ME! I want to make a text box that navigates a frame on the same page to the website you put into the text box, for example Textbox>>> [http://www.example.com] {ENTER} Then the Frame (called 'Browser' goes to that page) How Do You Do This PLEASE HELP ME! Thank You Josh Robertson Hi, is it possible that, to make select option to allow user enter the text...? user can choose from select option.. if did not in the list, then user might need to enter text. Anyone can help me? |