For global browser support you should be using JavaScript for client side validation
See
http://irt.org/script/form.htm#5
If you are doing server side validation w/ VBscript
- on the receiving page (form action page)
<%
If Request.Form("yourformfieldname") <> "some_expected_value" Then
response.redirect "yourformpage.asp"
End if
%>
--
_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________
| Thanks Jens,
|
| Sorry if I appear dim but I am quite inexperienced and when I added "Return
| false" to my VBScript it was ignored so I assume there must be more code
| required to make it work.
|
| Do I to put an object reference before the "Return false" part.
|
| I am normally using "document.FrontPage_Form1.<control ID>" to check for
| user inputs. Do I have to do the same here?
|
| Can you provide the precise syntax required or point me to where I might
| look it up myself?
|
| Thanks again
|
|
|
| "Jens Peter Karlsen [FP-MVP]" wrote:
|
| > Return false.
| >
| > Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
| >
| > On Tue, 18 Apr 2006 07:09:02 -0700, Alex567
| >
| > >I have a Frontpage form. When the user clicks "Submit" I run a VBScript to
| > >check the user input. If the data is unacceptable I want to cancel the page
| > >submission to the server and present a "Sorry" page. I know how to redirect
| > >to the "Sorry" page but how do I cancel the form submission?
| > >
| > >Thanks in advance for any help.
| >