That's correct Javascript, assuming that fld =
document.getElementById('the element you are referencing')
Kristina Anderson wrote:
if (fld.value.length == 0) {
is that even right?
I thought it used to be fld.length or fld.text.length...??
Kristina
Rolan,
I found this one that looked very easy to expand at
http://www.webcheatsheet.com/javascript/form_validation.php
However it is not picking up the blank fields...
I can try yours if you point me to it!
I need something that is extensible to handle the various types of
input like emails, phone numbers, etc.
-- Kristina
which one are you using? FormChek.js is easy and hasn't let me down
yet.
~Rolan
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php