The below html give you a white bar. and you can type things in it. i need help figuring out the html for this where i get the same box but a user cannot type in the box. the box will be used to show data. im assuming i change the imput type or method. I stole this from a previous thing i made. help? <form method='post' action=test.php> <input type='text' name='name' value='value' maxlength='X'> </form> Code (markup):
That's easy, see below: <form method='post' action=test.php> <input type='text' name='name' value='value' maxlength='X' readonly /> </form> Code (markup):
A quick pointer for broader compatiblity with newer standards- Attribute values should be enclosed in double quotes as opposed to single, and they should always be specified. So your code would look like: <form method="post" action="test.php"> <input type="text" name="name" value="value" maxlength="X" readonly="readonly" /> </form> HTML: