Log In · Register

 
 
Closed TopicStart new topic
Help with faulty comment box please
superzoe97
post Aug 22 2008, 08:12 PM
Post #1


Newbie
*

Group: Member
Posts: 6
Joined: Aug 2008
Member No: 678,664



Im using a div layout and within it is a comment box.

the code for the box is

CODE
<center><form method="post" action="http://comments.myspace.com/index.cfm?fuseaction=user.ConfirmComment"> <input name="friendID" value="270679319" type="hidden" /> <textarea name="f_comments" style="color:2b2b2b; font-family:arial; font-size:11px;width:210px;height:18px;text-align:right; border-color:2b2b2b; background-color:ffffff; border-style:solid; border-width:1px;line-height:11px;scroll:no;letter-spacing:1px;">He defines forever love<3</textarea> <input type="submit" value="submit" style="color:2b2b2b;font-size:11px;font-family:arial;text-transform:none;letter-spacing:1px;height:18px; width:45px;background-color:ffffff; border-color:2b2b2b; border-style:solid; border-width:0.1em; line-height:11px;" /><input /></form> </center>


but for whatever reason its giving me two text areas, an extra one just beneath where the comment text area is. The extra one can be typed in but when you press submit it only takes the text from the first text area. Can anyone help me figure out how to get rid of it?
 
fixtatik
post Aug 22 2008, 09:36 PM
Post #2


Senior Member
******

Group: Member
Posts: 1,237
Joined: May 2008
Member No: 648,123



the second one isn't actually a textarea; it's an input field. in your code you have </input> which i assume you thought was supposed to close the submit button. <input> tags are closed within themselves (like <input type="text" />, not <input type="text"></input>). just get rid of that last part and you'll be good.
 
superzoe97
post Aug 23 2008, 10:25 PM
Post #3


Newbie
*

Group: Member
Posts: 6
Joined: Aug 2008
Member No: 678,664



worked perfect thanks =]
 
manny-the-dino
post Aug 24 2008, 12:41 AM
Post #4


Senior Member
*******

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



Topic Closed & Moved
 

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