form validation (restricting values)?

E

Ed

Hi gang! I've combed the past archives and could not find an answer to my
question. So, like many of you, I'm now getting commenting spam bots and I'd
like to be able to simply and easily add a keyword filter using FrontPage
(form submission gets rejected if a keyword is in a form field). So far, the
only thing I'm able to use is the "Field must be:" and "And must be:" areas
under Data value (Form Field Properties--> Validate... --> Data value). I
just set it to "Not equal to" and enter in the "badword" under Value.

The problem with this is that there is only room for two, and, not only is
it case sensitive, but if the submission does not match exactly what I put in
the filter, it lets it slip through (e.g. filter of "href=" won't stop "<A
HREF=http://www.domain.com>"). I'm looking for a "contains" or something
similar, and also a way to extend my filters to more than just two.

The inpout field looks like this:

<!--webbot bot="Validation" s-display-name="Name" b-value-required="TRUE"
i-maximum-length="50" s-validation-constraint="Not equal to"
s-validation-value="phentermine" s-validation-constraint="Not equal to"
s-validation-value="Phentermine online" --><input type="text" name="Name"
size="20" maxlength="50">

It's not exactly the most ideal or productive solution, but adding more
(s-validation-constraint="Not equal to" s-validation-value="phentermine")
statements will probably do the trick as far as increasing the number of
badword filters, but it still doesn't solve the case sensitive issue or the
"exact match" issue. Help! :(
 
T

Thomas A. Rowe

Not possible using FP Field Validation.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top