Hi,
I have an issue where in a classic asp environment i have to submit a form with FCKEditor created text twice before i can get the text that has been created. I wish to validate that data exists via javascript before processing elsewhere but request variable is always empty on first submission.
Is there a simple answer here ?
Code is as follows
<form method="post" action="CampDeploy.asp" id="emailfrm" name="emailfrm" onsubmit="javascript:return checkdetails();">
<table border="0" width="480" cellspacing="0" cellpadding="0" align="center">
<tr><td class="largefont" style="padding-top:5px;padding-left:5px;" valign="top"><b>Stage: </b><em><%=tit%></em></td></tr>
<tr>
<td class="datafont" style="padding-top:5px;padding-left:5px;"><b>Subject:</b><br />
<input type="text" name="subj" id="subj" class="required" size="50" maxlength="80" value='<%=subj%>'></td>
</tr>
<tr>
<td width="480" class="basefont" style="padding-left:5px;"><b>Message:</b><br />
<%
Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = "/fckeditor/"
oFCKeditor.Value = bdy
oFCKeditor.Height = 375
oFCKeditor.Create "mmsg"
%>
</td>
</tr>
<tr>
<td align="center">
<p align="center" style="padding-top:5px;">
<%If bdy="" Then%>
<input type="submit" value="Build eMail" name="B1">
<%Else%>
<input type="submit" value="Update eMail" name="B1">
<%End If%>
<br /><br />
</p>
</td>
</tr>
</table>
<input type="hidden" name="acid" value='<%=Request("acid")%>'>
</form>
Cheers
I have an issue where in a classic asp environment i have to submit a form with FCKEditor created text twice before i can get the text that has been created. I wish to validate that data exists via javascript before processing elsewhere but request variable is always empty on first submission.
Is there a simple answer here ?
Code is as follows
<form method="post" action="CampDeploy.asp" id="emailfrm" name="emailfrm" onsubmit="javascript:return checkdetails();">
<table border="0" width="480" cellspacing="0" cellpadding="0" align="center">
<tr><td class="largefont" style="padding-top:5px;padding-left:5px;" valign="top"><b>Stage: </b><em><%=tit%></em></td></tr>
<tr>
<td class="datafont" style="padding-top:5px;padding-left:5px;"><b>Subject:</b><br />
<input type="text" name="subj" id="subj" class="required" size="50" maxlength="80" value='<%=subj%>'></td>
</tr>
<tr>
<td width="480" class="basefont" style="padding-left:5px;"><b>Message:</b><br />
<%
Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = "/fckeditor/"
oFCKeditor.Value = bdy
oFCKeditor.Height = 375
oFCKeditor.Create "mmsg"
%>
</td>
</tr>
<tr>
<td align="center">
<p align="center" style="padding-top:5px;">
<%If bdy="" Then%>
<input type="submit" value="Build eMail" name="B1">
<%Else%>
<input type="submit" value="Update eMail" name="B1">
<%End If%>
<br /><br />
</p>
</td>
</tr>
</table>
<input type="hidden" name="acid" value='<%=Request("acid")%>'>
</form>
Cheers
Re: Form submission not sending text first time