Re: php + javascript hard day together ?

From: Date: Sat, 13 Jul 2002 17:57:18 +0000
Subject: Re: php + javascript hard day together ?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-107531@lists.php.net to get a copy of this message
I hack js no need to change in php : <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var checkflag = "false"; // on va se ballader parmis les elements de formualire et toucher // au case a cocher function check(formulaire) { if (checkflag == "false") { for (i = 0; i < formulaire.length; i++) { if (formulaire.elements[i].type.toLowerCase() == 'checkbox') { formulaire.elements[i].checked = true; } } checkflag = "true"; return "Nulpart"; } else { for (i = 0; i < formulaire.length; i++) { if (formulaire.elements[i].type.toLowerCase() == 'checkbox') { formulaire.elements[i].checked = false; } } checkflag = "false"; return "Partout"; } } </script> I pass teh form to the function and scan its elements

« previous php.general (#107531) next »