Log In · Register

 
textarea
Smarmosaur
post Jul 11 2008, 01:36 PM
Post #1


AKA RockIt Studios
******

Group: Official Member
Posts: 2,286
Joined: Jun 2006
Member No: 421,809



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?
 
 
Start new topic
Replies (1 - 4)
schizo
post Jul 11 2008, 01:59 PM
Post #2


Senior Member
******

Group: Staff Alumni
Posts: 2,435
Joined: Feb 2007
Member No: 506,205



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
post Jul 22 2008, 03:50 PM
Post #3


Senior Member
***

Group: Member
Posts: 65
Joined: Jul 2008
Member No: 663,422



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
post Jul 22 2008, 04:26 PM
Post #4


AKA RockIt Studios
******

Group: Official Member
Posts: 2,286
Joined: Jun 2006
Member No: 421,809



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
post Apr 2 2010, 01:00 PM
Post #5


Senior Member
*******

Group: Administrator
Posts: 8,629
Joined: Jan 2007
Member No: 498,468



Topic Closed, and Moved to Resolved Topics. Please PM a moderator if you would like this reopened.
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: