Results 1 to 11 of 11

Thread: Insert HTML text box

  1. #1
    Join Date
    Aug 2006
    Posts
    122

    Insert HTML text box

    Hello, I would like to put on my blog a text box and the contents of this box is a text instead of HTML code is normal for people to see, but can not modify. Something like this:

    <textarea id="comment" name="comment" cols="44"> Hello everybody </ textarea>

    ok the problem is at the "Hello World" is the HTML code to this table and people can write what you want, and I want to leave locked.

    Thank you
    As you simplify your life, the laws of the universe will be simpler; solitude will not be solitude, poverty will not be poverty, nor weakness.Henry David Thoreau

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: Insert HTML text box

    Here you have it ..

    Code:
     <textarea id= readonly "comment" name= "comment" cols= "44"> <textarea id= "comment" name= "coment" cols= "44"> Hello everybody </ textarea> </ textarea>

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Insert HTML text box

    If you do not want change creates a better container, which is what we do here to display the answers in code.

    Example: (You will have to see the source code of this page)

    Code:
    <html> 
     <body> 
    
    In this text box (DIV) can see the HTML code , You can select it, 
    
    but you can not change it. 
    
     </body> 
     </html>

  4. #4
    Join Date
    Aug 2006
    Posts
    122

    Re: Insert HTML text box

    Thank you very much for you help. That is just what I needed
    As you simplify your life, the laws of the universe will be simpler; solitude will not be solitude, poverty will not be poverty, nor weakness.Henry David Thoreau

  5. #5
    Join Date
    Dec 2009
    Posts
    1

    question I Need Help Bad (Inserting Text Box for Customer Input)

    I need help inserting html code onto my website. What I am trying to do is add a text box on my web site so that customers can type in information.

    I also need the code to change my link from "Click Here To Send Your Free Estimate" and turn that into a button.

    Any and all help will be deeply appreciated.

  6. #6
    Join Date
    May 2008
    Posts
    2,297

    Re: Insert HTML text box

    You need to enter this code for display text area with submit button.

    Code:
    <form method="post" action="">
    <textarea name="comments" cols="50" rows="10">
    Enter your comments here......
    </textarea>
    <br>
    <input type="submit" value="Submit" />
    </form>

  7. #7
    Join Date
    Apr 2008
    Posts
    2,005

    Re: Insert HTML text box

    I think you can solve your problem by this. <TEXTAREA ID = readonly "COMMENT" NAME= "COMMENT" s= "44"> <TEXTAREA ID= "COMMENT" NAME= "coment" cols= "44">HELLOBBDY</ textarea> </ textarea> TEXTAREA ID

  8. #8
    Join Date
    May 2008
    Posts
    2,012

    Re: Insert HTML text box

    If you want your form to be validated, that is you want to check that the user has entered correct and full information, you will have to redirect the control to the function that is in the head. For this purpose use the following code in the form tag:
    <html>
    <head>
    <title>Title of the document</title>
    <script>
    function validate()
    validation code
    </script>
    </head>
    <body>
    <form onsubmit="validate()">
    Body of the Form
    </form>
    </body>
    </html>

  9. #9
    Join Date
    Nov 2009
    Posts
    140

    Re: Insert HTML text box

    Hi friend,

    If you want to insert the text box in the html page, then for this you should use the "<textarea> tag". This tag is must be written within the "<form> tag". See the below example in which I have included <textarea> tag under the <form> tag:
    HTML Code:
    <Body bgcolor= green>
    
    <Form action="" method="post" >
    
    <textarea cols="60" name="TextBoxDemo" >
    
    //mention your comment here
    
    </textarea>
    
    </form>
    
    </body>

  10. #10
    Join Date
    Nov 2009
    Posts
    1,118

    Re: Insert HTML text box

    Refer following Html code:
    </html>
    <Body vlink= red>

    <H6> Welcome to HTML text box program</H6>

    <form method="Put method name for Textbox" action="">
    <Textarea name="Put name for Textbox" cols="80" rows="10">
    </Textarea>
    </form>

    </body>

    </html>

  11. #11
    Join Date
    Dec 2010
    Posts
    1

    Re: Insert HTML text box

    OK can someone please help me with this? What i whant to do is to when someone presses "Post" or "submit" it post for people to see. If anyone could give me a HTML code for this Thanks!

Similar Threads

  1. How to insert JavaScript into HTML file?
    By Shekhar12 in forum Software Development
    Replies: 3
    Last Post: 24-11-2009, 05:49 PM
  2. How to insert an em dash in MS Word and HTML
    By Vania in forum Windows Software
    Replies: 2
    Last Post: 16-05-2009, 11:51 AM
  3. insert url of a video in a html code
    By Richard B Rufus in forum Software Development
    Replies: 4
    Last Post: 10-02-2009, 10:59 AM
  4. How do I insert an image in HTML?
    By Pikachoo in forum Software Development
    Replies: 3
    Last Post: 05-02-2009, 11:09 PM
  5. how to insert html code into email message?
    By MikeY007 in forum MS Office Support
    Replies: 1
    Last Post: 29-01-2008, 07:12 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,271,276.36566 seconds with 17 queries