Help - Search - Members - Calendar
Full Version: textarea
Forums > Resource Center > Webmasters' Corner > Webmasters' Corner Resolved Topics
Smarmosaur
on my website, i'm using a textarea, to post a code.
however, i have a myspace code with a comment box in it:
CODE
<form method="post" action="http://comments.myspace.com/index.cfm?fuseaction=user.ConfirmComment"><input name="friendID" value="46340633" type="hidden"><textarea name="f_comments" style="width: 155px; height: 55px; border-width: 1px; border-style: solid; border-color: 000000; font-family: Tahoma; font-size: 10px; color: 000000; background-color: transparent;" style="overflow:auto;">Lyke woaw, I totally <3 you.</textarea><br> <input value="Add Comment" style="width:155px; border-width: 1px; border-style: solid; border-color: 000000; font-family: Tahoma; font-size: 10px; color: 000000; background-color: transparent;" type="submit"></form>


however, notice that there is a textarea in there. the
CODE
</textarea>
closes the textarea that i have the coding in, causing the rest of the form after that textarea to actually appear (the add comment button actually shows up).
is there another way to display the codes without a textarea?
will it work if i add in an iframe and point it at just a plain text document with the code in it?
schizo
You can change the < and > in the code you want in the box to HTML codes. You only have to do that to the textarea parts. I'm pretty sure the codes are & l t ; and & g t ;. Just don't put the spaces. :)
nitrogoat
This is a problem I had as well.
As well as
CODE
&lt;
and
CODE
&rt;
(which is what I used on my site), you could just link to a text file with the coding in, which would be better if you had a lot of
CODE
</textarea>
tags.
Smarmosaur
oops. i forgot about this, even though i did it forever ago. XD.gif
anyways.
QUOTE(schizo @ Jul 11 2008, 01:59 PM) *
You can change the < and > in the code you want in the box to HTML codes. You only have to do that to the textarea parts. I'm pretty sure the codes are & l t ; and & g t ;. Just don't put the spaces. :)

i was like DDDUUUUHHHHH *smacks head* when i read that. thanks! :]
manny-the-dino
Topic Closed, and Moved to Resolved Topics. Please PM a moderator if you would like this reopened.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.