I have an asp page which is for a news weblog. the way it is designed is that all the different views available are on one long page. There are 2 views, for an article to show. At the bottom of both is a form called "frm3" which is for posting comments. This form has a text area to which i added the RTE (see below)
On the same page, the same code below needs to be repeated. i copied and pasted it, but it returns an error on the public side. It only works if i use it in one form.
I need to be able to use it in both forms. Both are identical, and only one can be used at a time, as the article is either showing one or the other on the public side. But i think the server reads the whole page and sees 2 RTE's
How do i solve this problem? . I'm not html literate, so Thanks in advance for any help
<% IF blLOGGED_IN = True THEN %>
<br /><br />
<body OnLoad="initialiseWebWizRTE();">
<table width="430" bgcolor="yellow" cellpadding="2" cellspacing="0" border="0" ><tr>
<td style="padding: 20px;">Membership details may be edited on next page.<br />
<br />
<table align="center" width="400" cellpadding="2" cellspacing="0" border="0">
<form action="_comments.asp?ID=<%=NID%>" method="post" name="frm3" id="frm3" onSubmit="return ValidateComment()">
<tr>
<td width="100">Name</td>
<td width="300"><%=Session("PMMS_USERNAME")%></td>
</tr><tr>
<td>Country</td>
<td width="300"><%=Session("PMMS_COUNTRY")%></td>
</tr><tr>
<td>*Subject</td>
<td width="300"><input type="Text" name="subject" value="" maxlength="50" class="textbox" style="width: 100%"></td>
</tr><tr>
<%
'Declare the ASP variables used
Dim strFormName
Dim strTextAreaName
'ID tag name of the HTML form the textarea is within
strFormName = "frm3"
'ID tag name of HTML textarea being replaced
strTextAreaName = "comment"
%>
<td valign="top">*Comment</td>
<td width="300"> <!-- include the Web Wiz Rich Text Editor -->
<!--#include file="RTE_editor_inc.asp" --> <textarea name="comment" id="comment" rows="6" cols="50" style="width: 100%;" class="textbox"></textarea>
<input type="Checkbox" name="allowE" value="1" />
receive emails from readers</td>
</tr><tr>
<td></td>
<td><input type="Submit" value="Add Comment" /></td>
</tr>
<input type="Hidden" name="mode" value="set" /></form>
</table>
<br /><br />
<table cellpadding="2" cellspacing="0" width="100%"><tr>
<td>* - these fields are mandatory.</td>
</tr></table>
<br /><br /> </td>
</tr></table>