Reply to Re: Checkbox forms, php & mysql

Your name:

Reply:


Posted by Jason Herald on 05/28/06 07:34

Another option is to loose the binary and use a text field and just
store the on or blank. It really just depends on what you are going
for.

Using int you would do it such:

$d = null;
if ($_POST['check_box_name']=="on") {
$d = 1;
} else {
$d = 0;
}

Then just update your database accordingly.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация