PHP News   Codeschnipsel   PHP-Scripts   Impressum   Datenschutz


Codeschnipsel

Checkbox prüfen
Mit diesem Codeschnipsel kannst du Checkboxen überprüfen.
Hier gibt es eine Vorschau: Demo

Autor: Fabian Karg E-Mailadresse des Autors Gästebuch: kostenlos und werbefrei
<?
   
echo "<form action=?action=check method=post>";
   echo 
"<input type=checkbox name=NEWtext>";
   echo 
"<input type=submit value=prüfe checkbox></form>";
   echo 
"<br>";
   
   if(
$action == check) {
      if (
$NEWtext == "on")
         
$checked 'checked';
      echo 
"Checkbox ist <input type=checkbox name=NEWtext $checked>";
   }
?>



Tipps:


Copyright © 2008 phpfriends.net. Alle Rechte vorbehalten.

Notice: Undefined variable: HTTP_SERVER_VARS in /www/htdocs/phpfrien/Counter/counter.php on line 37

Notice: Undefined variable: HTTP_SERVER_VARS in /www/htdocs/phpfrien/Counter/include/config.inc.php on line 64

Notice: Undefined variable: HTTP_SERVER_VARS in /www/htdocs/phpfrien/Counter/include/config.inc.php on line 66

Notice: Undefined variable: HTTP_SERVER_VARS in /www/htdocs/phpfrien/Counter/include/config.inc.php on line 69

Notice: Undefined variable: HTTP_SERVER_VARS in /www/htdocs/phpfrien/Counter/include/config.inc.php on line 71

Deprecated: Assigning the return value of new by reference is deprecated in /www/htdocs/phpfrien/Counter/include/functions_counter.inc.php on line 703