RE: [PHP] Form validation of dynamically generated forms?
| From: | Chad Day | Date: | Mon, 28 Aug 2000 22:15:36 +0000 |
| Subject: | RE: [PHP] Form validation of dynamically generated forms? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-14015@lists.php.net to get a copy of this message | ||
Yes. :( Was one of the many things I tried. Still chokes in Netscape with
a document.myForm.QUANTITY# has no properties error.
Tried that, myForm., document.myForm., and everything else I could find in
Netscape's documentation of javascript.
Chad
-----Original Message-----
From: Grant Walters
To: Joao Prado Maia
Cc: php-general@lists.php.net
Sent: 8/28/00 5:30 PM
Subject: RE: [PHP] Form validation of dynamically generated forms?
I'm not a Javascript programmer by any means but have you tried
referencing
variables like this:
document.myForm.['QUANTITY1'].value
> echo "\t\tif (document.myForm.QUANTITY$x.value == '') {\n";
> > echo "\t\t\talert(\"You must enter a value for the Quantity
> > field.\")\n";
> > echo "\t\t\tdocument.myForm.QUANTITY$x.focus();\n";
> > echo "\t\t\treturn (false);\n";
> > echo "\t\t}\n";
> >
>
Regards
GRANT WALTERS
Walters & Associates, P O Box 13-043, Johnsonville, Wellington, New
Zealand
Phone: +64 4 4765175 CellPhone: 025 488265
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net