javascript, forms and php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

 

I'm hoping someone can help me with this problem.

 

I'm using javascript for some client side field validation in a form
(method=post) that gets managed via php.

 

This particular form makes extensive use of checkboxes.  I've always like
how when named properly (field name of "checkbox1[ ]"), php will pass that
variable as an array that contains all the values selected in the form.
Very handy.  BUT,

 

How do you then reference that variable via javascript to do any client-side
validation?  The code I use makes reference to the field's id, and it still
doesn't seem to check things properly.

 

Is there any way around this, or what am I missing?

 

TIA,

 

Kelly


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux