I have two asp pages, the first one dynamically posts certain records from a MSACCESS database, and below it, has a form, just a textarea, a couple hidden fields, and a submit button:
<form name="3" method="post" action="addssreply.asp">
<br>
<b>Subject:</b> Re:
<b><% Response.Write(Session("rsubject") %></b><br>
<b>Message:</b><br>
<textarea name="rpost" cols="50" rows="15" class="dark">
<% Response.Write(Session("rpost") %>
</textarea>
<input type="hidden" name="parentid" value="
<% Response.Write(befid) %>">
<input type="hidden" name="done" value="yes">
<input type="submit" name="Submit" value="Submit!">
</form>
On the second page, before I enter it into the database, I do a simple check to make sure the textarea (named rpost in the form above) isn't blank:
if ptext = "" then
Response.Write("Error, you have left out your message in your reply, please go back in your browser and fill in the field."
else
enteri
End if
The problem with this is that it always displays the results of the sub enteri, even if the post is blank.
Any Suggestions?
"Everything is possible, it just depends on how much you want to pay for it."
-James
<form name="3" method="post" action="addssreply.asp">
<br>
<b>Subject:</b> Re:
<b><% Response.Write(Session("rsubject") %></b><br>
<b>Message:</b><br>
<textarea name="rpost" cols="50" rows="15" class="dark">
<% Response.Write(Session("rpost") %>
</textarea>
<input type="hidden" name="parentid" value="
<% Response.Write(befid) %>">
<input type="hidden" name="done" value="yes">
<input type="submit" name="Submit" value="Submit!">
</form>
On the second page, before I enter it into the database, I do a simple check to make sure the textarea (named rpost in the form above) isn't blank:
if ptext = "" then
Response.Write("Error, you have left out your message in your reply, please go back in your browser and fill in the field."
else
enteri
End if
The problem with this is that it always displays the results of the sub enteri, even if the post is blank.
Any Suggestions?
"Everything is possible, it just depends on how much you want to pay for it."
-James