textarea

Results 1 to 2 of 2

Thread: textarea

  1. #1
    angie Guest

    Default textarea

    Hi...<BR>can anyone help me through these simple codes? It doesn&#039t give me an error msg when I don&#039t write any message in the textarea...where&#039s the mistake??? (don&#039t bother abt the case where no title is entered-this is dealt in the linked page)<BR>thanks a lot...<BR><BR><BR>&#060;script language="JavaScript"&#062;<BR><BR>function checkform()<BR>{<BR><BR>if (document.addnew.addnew.value=="")<BR>{<BR>alert(" Please enter a title");<BR>document.addnew.addnew.focus();<BR>ret urn false;<BR>}<BR>return true;<BR>}<BR>&#060;/script&#062; <BR><BR><BR><BR><BR>&#060;TABLE width="100%" border=1 bordercolor="#3399ff" bgcolor="#3366cc" cellPadding=3 cellSpacing=0&#062;<BR>&#060;form name="addnew" action="add.asp" method="post" onsubmit="return checkform()"&#062;<BR> &#060;tr bgcolor="#00009c"&#062;<BR> &#060;td&#062;<BR> &#060;p id="title" align="center"&#062; &#060;strong&#062; &#060;%=heading%&#062; &#060;/strong&#062; <BR> &#060;/td&#062; <BR> &#060;/tr&#062;<BR><BR> &#060;tr bgcolor="#eeeeee"&#062; <BR> &#060;td&#062; <BR> &#060;p id="black"&#062; &nbsp; Please enter a title for your new message : &nbsp; <BR> &#060;Input TYPE="TEXT" NAME="title" size ="10"&#062; <BR> <BR> &#060;p id = "black"&#062; &nbsp; Please type in your new announcement &nbsp; : <BR> <BR> &nbsp;<BR> &#060;TEXTAREA NAME="addnew" ROWS=6 COLS=50&#062; &#060;/textarea&#062; <BR><BR> <BR> &#060;p align="center"&#062;&nbsp;&#060;input type=submit value="Send your announcements!" NAME="send"&#062;<BR>&#060;/form&#062;

  2. #2
    ASP_NOBODY Guest

    Default No guarantee

    nor offense, but I&#039d name uniquely.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •