Click to See Complete Forum and Search --> : Frontpage: required field?


dminnick
12-10-2004, 09:30 AM
I've been given the task of creating a Frontpage form that either disables the "Enter" button (to avoid accidental empty form submissions, or enabling a required checkbox that must be populated prior to the form submission. Any help would be greatly appreciated!!

russell
12-10-2004, 04:01 PM
You need a javascript form validation routine. post the form code

dminnick
12-10-2004, 04:25 PM
I found a script site that explained the matter. I really appreciate you getting back to me!

Stephen Philbin
12-11-2004, 09:04 PM
Also use a server side language to back up the javascript form validation. If it's anything important then javascript is worthless.

russell
12-11-2004, 09:46 PM
Allow me to take the liberty of expanding on Mr. Herer's statement:

If it's important definitely do server side validation. JavaScript is very much worthwhile, but it isn't enough. Some users won't have JS, plus, depending on client side script to protect your databases is a dangerous practice. You will want to do server-side validation, plus cleanup before writing anything to a database -- for example, escaping quotes and dashes (SQL comment delimiters) to prevent SQL injection attacks.

I think Mr Herer overstated his point, but it is an important point nonetheless.

russell
12-11-2004, 09:52 PM
why did this show up 3 times? my dsl connection sucks.

russell
12-11-2004, 10:01 PM
.