introduction screenshots faq forum blog modules components download
Please use the search function and/or read the FAQ first.

Go to Topic: PreviousNext
Go to: Message ListNew TopicSearchLog InPrint View

Checkbox boolean html



Posted by: ClaudePatrice
March 14, 2008 10:08PM
J'essaye de mettre un checkbox dans un formulaire html. Quand je coche la case je recupere dans ma variable 'on'.

Ceci est le titre LOULOU LOULOU LOULOU 25,25 0,250 9782564523659 0.25 x 0.13 x 0.25 956 on

dans mysql il n'y a pas de boolean mais tinyint soit 0 ou 1.
Dans ma form html si je coche pas de probleme (reponse ci dessus avec des echo 'variables...mais si je ne coche pas le script se plante.

Notice: Undefined variable: nouveaute in E:\PhPMySQL\EasyPHP 2.0b1\www\Ajout_livres_php.php on line 41

Comment puis je metre une valeur par defaut et laquelle?
merci
Claude Patrice
Options: ReplyQuote


Go to: Message ListSearchLog In
Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.