Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 200003

[PHP3] check box From: CL Yong (clyong <email protected>)
Date: 02/29/00

Hello,

1.) As the below solution, I got the answer.
But if I put into FUNCTION method, it nothing print out.
How to get it?

2.) How to put the check box values into array ?

Thanks,

example :
....
function check_box ($sizeof_x)
{ for ($i=0;$i<sizeof($x);$i++) {
      echo "$x[$i] "; }
}
....
#########

HTML :
.....
<INPUT TYPE=CHECKBOX NAME="x[]" VALUE=1 > Option 1
<INPUT TYPE=CHECKBOX NAME="x[]" VALUE=2 > Option 2
.....

PHP :
       for ($i=0;$i<sizeof($x);$i++) {
       echo "$x[$i] "; }

-- 
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin <email protected>