ASP page stop from crashing

Wurn

New member
Local time
Today, 09:48
Joined
Oct 16, 2008
Messages
9
Hey i hope someone can help me. I have a web input user page that crashes if there are no data filled in, in the input fields.

Is there a way of stopping it from crashing or better not doing anything when no info is inserted.

or should i write in commands that forces them to enter data?
 
still no one to respond? a pity really
 
Create a Variable:

dim Flag as Byte
Flag = 0

Flag = request.form("Flag")
if Flag = 0 then

form input fields

on submit flag = 1

Flag = request.form("Flag")
if flag = 1 then

Validate

If fields don't have values

go back

If fields have values

confirmation of input

On submit flag = 2

Flag = request.form("Flag")
if flag = 2 proceed with whatever

Basically, start with (0) submit to validate (1) and proceed or confirmation only on (2)

Simon
Simon
 

Users who are viewing this thread

Back
Top Bottom