Checkbox prüfen
Hier seht ihr wie man Checkboxen in einen Formular überprüfen
läßt
|
Script: |
<?
echo "<form
action=?action=check method=post>";
echo "<input
type=checkbox name=NEWtext>";
echo "<input
type=submit value=prüfe checkbox></form>";
echo "<br><br><br>";
if($action ==
check) {
if ($NEWtext
== "on")
$checked
= 'checked';
echo "Checkbox
ist <input type=checkbox name=NEWtext $checked>";
}
?>
|
|