Print Page | Close Window

texarea is not posting data

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Rich Text Editor (RTE)
Forum Description: Support forum for the Web Wiz Rich Text Editor (RTE).
URL: https://forums.webwiz.net/forum_posts.asp?TID=17401
Printed Date: 28 March 2026 at 11:06pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: texarea is not posting data
Posted By: Villain
Subject: texarea is not posting data
Date Posted: 30 November 2005 at 4:50am
when i submit my form the textarea is not posting any info?
 
here is my form:
<FORM ACTION="addNews2.asp" METHOD="POST" NAME="form">
  <TABLE width = 100%>
    <TR class="TData_Info">
      <TD width="50%">Add News</TD>
      <TD width="50%"><a onclick = "return checkFields()" href = "javascript:form.submit();">Add</a></TD>
    </TR>
    <TR Class = "TData_Text_Grey">
      <%
 'Name of the HTML form the textarea is within
 strFormName = "form"
 
 'ID tag name of HTML textarea being replaced
 strTextAreaName = "mytextarea"
 
 %>
      <!-- include the Web Wiz Rich Text Editor -->
      <!--#include file="RTE_editor_inc.asp" -->
      <TD colspan="2" align="center" Class="TData_Text_Grey"><textarea name="textarea" cols="100" rows="20" ID="mytextarea"></textarea></TD>
    </TR>
    <TR Class = "TData_Text_Grey">
      <TD colspan="2" align="center" Class="TData_Text_Grey">&nbsp;</TD>
    </TR>
  </TABLE>
</form>
 
any ideas as to why its not posting?
thanks
Shem



Replies:
Posted By: WebWiz-Bruce
Date Posted: 30 November 2005 at 6:28am
Your form needs to have an ID value as well as a name value, also calling the form 'form' is not a good idea as it can course conflicts in the JavaScript.

A proper submit button instead of sunbmitting by a javascript onclick event may also help.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Villain
Date Posted: 30 November 2005 at 7:51am
oh i thought the freakin textarea needed an ID - ha silly me
thanks for the help Embarrassed


Posted By: Villain
Date Posted: 30 November 2005 at 8:05am
tried your suggestions, no lucky


Posted By: WebWiz-Bruce
Date Posted: 30 November 2005 at 10:52am
Try chnaging the names of form elements as sometimes they can clash cousring problems.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: campite
Date Posted: 06 December 2005 at 2:28pm
I believe this line is causing the problem:
 
<a onclick = "return checkFields()" href = "javascript:form.submit();">Add</a>
 
the form will submit but the onsubmit event is not fired and you end up with a blank textarea. (the onsubmit event must be fired and it cannot be done this way, you need a button of type=submit or type=image)
 
See my explanation here:
 
http://forums.webwiz.net/forum_posts.asp?TID=17454&PN=1 - http://forums.webwiz.net/forum_posts.asp?TID=17454&PN=1
 
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net