HTML - Text Field
can someone help me with a script basically i want an input box where u put ur name into. then u click submit then on the next page it displays what u just put in the input box...how do i do it?
Similar TutorialsHi Can any one help. I have this form the user is ask to input a message and a number. I want to be able to add a line of text to the message, which the user can not delete. But is sent joined to the message. ie User input Message = "Hi Just would like to share this site with you" with added text: Message "Hi Just would like to share this site with you" + "mydomain.com" Can anyone help? =========================================== Here is my form so far <script language="javascript" type="text/javascript"> function limitText(limitField, limitCount, limitNum) { if (limitField.value.length > limitNum) { limitField.value = limitField.value.substring(0, limitNum); } else { limitCount.value = limitNum - limitField.value.length; } } </script> <html> <body> <form action="stext.php" method="POST" name="number" id="number" style="width: 384; height: 372; "> <input name="number" type="text" id="number" style="position: absolute; left: 123; top: 287; color: #FFFFFF; width: 154px; border: 1px solid #ACC61B; background-color: #000000" size="20" tabindex="2"><p style="margin-top: 0; margin-bottom: 0"> <textarea name="message" cols="17" rows="1" id="message" onKeyDown="limitText(message,countdown,140);" onKeyUp="limitText(message,countdown,140);" style="position: absolute; left: 120; top: 105; width: 162px; height: 154px; color: #FFFFFF; font-family: Agency FB; font-size: 14pt; border: 1px solid #ACC61B; background-color: #000000" tabindex="1"></textarea> <br> </td> <input name="Submit" type="submit" id="Submit" value="!" style="position: absolute; left: 121; top: 329; color: #D95503; width: 157px; height: 23px; border: 1px solid #D95503; background-color: #D95503" tabindex="3"></p></form> <p style="margin-top: 0; margin-bottom: 0"><font size="4" face="Agency FB">Maximum characters: 140. You have <input readonly type="text" name="countdown" size="3" value="140"> characters left.</font> </font></p> <p style="margin-top: 0; margin-bottom: 0">nmgnm,</p> </body> Hello, I'm trying to create a text field on my site, and I want that when a user enter his zip code, and then press enter, he will be directed to another website. But it doesn't work: <input type="text" name="zipcode" value="Enter your Zip Code" id="zip" maxlength="20" onclick="window.location.href='http://second.site.com'"> Thanks Steve I have a problem; Look at this; {a text field} <iframe id="iframe1" src="google.com/gog.html? + the letters in the text field"> My problem is to get the src in the iframe to be google.com/gog.pl? + the letters in a text box anywhere on my site. {google.com was just an example} Do you know this better than me? How can i chnage the text color of the disabled field. Style attribute is not working Hello, I am making a check-in on my site. People have a number they recieve, what I want to do with this number is make a texfield and when the clicker presses Go! it does: http://www.cloudvairlines.com/index....redintextfield If anyone could make a code for this I would really really appreciate it. I have already tried some but none of them work! I have a input form i.e: Code: <tr> <td>Enter Salary:</td> <td><input type="text" name="text1" /></td> </tr><tr><td> <input type="button" name="button1" value="Submit" onClick="func(this.form)" /> </td></tr> This takes a input,and user clicks submit and it does some processing.... But I want to take multiple entries from the user before he clicks the submit button.But I dont know how many times he will enter data..so how to display the text field multiple times dynamically???? Hi I'm not sure if this is the right place to ask but I want to know if it possible to make a drop down menu and then when you click on the content inside it adds it to a plain text field. This is for a form I'm making for my website...I just don't know how to do this. Oh and a button to remove the content again. Any help is appreciated. Thank you I am trying to develop a login page with Photoshop and Dreamweaver. I have spliced out my images from Photoshop and placed them in Dreamweaver. I attempted to delete the image of a text field and replace it with an actual text field input, but when I do that the picture becomes distorted. Here is the picture of the site with just the pictures and no text field: Here is the picture of the site with text field added where the image of a text field was: Any help would be appreciated. Hi Guys I have a text input field in a form that has data in it from a previous entries. Is there something i can do that ensures the field is empty when the form is pulled up? Thanks everyone Hi, I've got an HTML form running on an internal intranet site. It contains a vbscript that pulls the username from the local machine. Is there a way to put that username in a text box on the html page for submission later? Please see the code below for reference thanks <html> <head> </head> <body> <script type="text/vbscript"> set objNetwork = createobject("wscript.network") document.write(objNetwork.Username) </script> </body> </html> I'm developing a small client / server application in HTML. It has a webserver which is hosting a page (login.html) the pages takes in login and password and lets you login into a console. The client just need a network access to reach the webserver. However, for audits / database i want to save the text entered into the username/password field into a file on my server machine. What i need to do? Is there a client side script that i need to write to do this or i could do it with HTML alone. Thank you I have three user input text boxes called; "name", "email" and "phone" and one text field to display that information called; "feedback". When a "Submit" button is clicked, the three text boxes are validated to check that what was typed inside them was OK. I then want to display the Users' name, email and phone number on individual lines in the text field, for example, name on line 1, email on line 2 and phone number on line 3. At the minute when I submit the information only the phone number displays on the first line of the text box. In the text field "feedback"; I know the HTML probably interprets my code as; the name is being replaced by the email and then the email is being replaced by the phone number. Here is the relevant section of my code. function validate(){ if (validateName () && validateEmail() && validateformatNumber()){ var myName=document.survey.visitor.value; document.survey.feedback.value=myName; var myEmail=document.survey.email.value; document.survey.feedback.value=myEmail; var myPhone=document.survey.phone.value; document.survey.feedback.value=myPhone; return true; }else{ return false; }} I think the solution could be something simple but I haven't much of an idea of how to do it. Thanks in advance. I'm a beginner studying HTML. One item that I cannot find out how to do is to put a design behind the images/text in a regular text field. For instance, if I was on a social networking site and typed about myself in a specific box on my profile. Is it possible to embed or modify my text to have a custom design in its backdrop with something such as a specific code that I may add in? Does anyone know where I can find some free code for a formatted/enhanced text field (very similar to the one I am typing this into, with the bold/italics/underline options, etc). I have a website where I upload a lot of articles that usually come in Word format, and instead of converting that to html (usually by hand because Word does not convert to xhtml transitional) I would much rather just use an enhanced text field and copy and paste it, then in the background I would have the code that would insert the articles to my database and create the pages and links for them. I just need code for the enhanced form. Everything I have found so far is entire bulletin board systems, which I do not need. Thanks I have a web page that I had to convert from a .psd file to an html and I'm not able to center a submit button and the text field next to it. I've tried various alignments but I'm also limited by what I can do because when you convert from .psd to html the entire page is one form. I don't have an external link but I'm able to provide html if necessary. Can someone please take a look at my code and offer some suggestions? Thank you Doug I have a form but a text field and a hidden field don't come in form elements.I am alerting all form elements in a javascript function which is invoked on press of a button and these two form elements don't come. Any idea why that will happen. JS function which alerts the form elements is as follows :- function populateSubmitProfile() { var i =0; alert("Number of forms "+document.forms.length) ; for( i = 0 ; i < document.forms[0].elements.length ; i++) { alert("Name of the elements :"+document.forms[0].elements[i].name) ; } } Here is a (very trimmed-down) version of my site: http://www.nceccec.com/en_us/css_test.html At least in IE6 and IE7, the top field does not display the specified left margin, while the bottom one correctly shows the left margin. There is only one difference between these two fields: the CSS property width is set on the first field, while no width is set on the second field. Here is all the code for this page in case someone wants to view it he HTML Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Title</title> <style rel="stylesheet" type="text/css"> .fielditself { font-weight : normal; display : block; margin-left : 5%; } </style> <body> <table style="width : 100%;"> <tr> <td> <form method="post" action="check_order.php"> <div><div>Year</div><div class="fielditself"><input style="width : 9ex;" type="text" name="year" /></div></div> <div><div>Make</div><div class="fielditself"><input type="text" name="make" /></div></div> </form> </td> </tr> </table> </body> </html> Thanks for any guidance! Jason Hi everyone, New to this site so I hope i can get some helpful tips. I'm kinda new to HTML so here are my questions. I'm creating a request form and require the contents of the form to my email address but i don't want it to be in a file. Another feature i want is the date field. When the user tabs or clicks in the date field i want the current date to be populated in the text field. I've attached the code: <html> <body> <h1>Request Form</h1> <form method="POST" action="mailto:email@email.com"> Date: <input type="text" name="date" > <br> Requested by: <input type="text" name="reqeustor"> <br><br> Assigned to: <input type="radio" name="assignee" value="Name1"> Female<br> <input type="radio" name="assignee" value="Name2"> Male<br><br> Decription of request:<br> <textarea rows="50" cols="80" name="descrip"></textarea><br> <input type="submit" name="submit" value="Submit Request""> <input type="reset" name="reset" value="Reset"> </form> </body> </html> Any help will be greatly appreciated. Thank you. Apologies in advanced if this has been solved in another forum. I found my answer googling around but i need it refined. One checkbox with two disabled radio buttons. When user clicks on check box it enables both radio buttons and a input text field. Code: <script type="text/javascript"> function enable(x){ if(x.checked){document.formTest.rRegular.disabled=0} else{document.formTest.rRegular.disabled=1}} </script> </head> <body> <form name="formTest" method="POST" action="--WEBBOT-SELF--"> <p><input type="checkbox" name="cbFlower" value="ON" onClick="enable(this)">Flowers</p> <p><input type="radio" checked name="rRegular" value="V1" disabled=1>Regular Package <input type="radio" name="rDeluxe" value="V2" disabled=1>Deluxe Package</p> <p><input type="text" name="tFlower" size="40" disabled=1></p> </form> I'm sure its a simple modification to the 'funciton enable' so that it enables the other radio button and text box. I need to repeat this process for other groups of similiar check boxes with 2 or more radio buttons and a text field. They need to be independent of each other. If this one get's solved I can copy the function and modify it for the other groups. Unless there's a simpler way. Thanks for your help Ok, I'm working on a website and I need to put in a text field where someone can effectively leave "updates" and little notes. The site will be saved on a network and used by multiple computers so I'm hoping it can be done without have to make multiple CSS files. So far so good. Essentially I want one computer to be able to type in text and close the window. Then I want to be able to open it up on another computer and still see that text. So far all that's happened is the text resets to a blank field after it's closed, which I expected, I just don't know how to fix it lol I'm using IE and not Firefox. |