form validation
form validation
- Subject: form validation
- From: "Jessica McMackin" <email@hidden>
- Date: Tue, 12 Mar 2002 19:02:32 +0000
I am new to AppleScript and I am trying to validate the user input to a
form.
I have one acgi script that creates the form and I would like to do the
validation from that same acgi.
this is the behavior that I am after:
If a user enters an invalid response and hits submit, a dialog box pops up,
but the page does not redirect
The user hits "ok" and the invalid entry is erased from the page for them
Then the user enters all valid data and hits submit, and they are taken to a
different page thanking them (this page is also created by an acgi script).
Right now I am using a subroutine to validate. The CGI request handler first
checks if there is any data in post_arguments, if so, it calls the
validator, and otherwise it creates the blank form. So I need a way to
redirect to the thank you page from the subroutine when the input is valid.
Alternately, if anyone knows of a way to have my validation call be a part
of the submit action, that would be great too. thanks,
Jessica
_________________________________________________________________
Send and receive Hotmail on your mobile device:
http://mobile.msn.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.