Re: Asp first page load (validation) help!!!! by Dan
Dan
Mon Nov 03 07:40:05 CST 2003
Create and look for a form element that should NOT be there when
loading the page first time.
<%
if request.form("ACT") = "SAVE" then
' Validate
end if
%>
<FORM ... >
<INPUT TYPE=HIDDEN NAME="ACT" VALUE="SAVE">
...
</FORM>
When first loading the page, the value for request.form("ACT") will be
blank. However, after submitting back to itself, it will be "SAVE".
On 3 Nov 2003 04:52:32 -0800, aotemp@hotmail.com (x) wrote:
>Im working with an ASP page, with vbscript.
>
>I am doing a bit of data validation on the following page and sending
>the users back to the previous page if the required fields are not
>filled in. This works great, only the warning that the required
>fields were not filled in is now showing up on the first page when you
>first enter the site.
>
>how can I stop this from occurring?
>
>thanks