You are here: Re: Type of form element « PHP « IT news, forums, messages
Re: Type of form element

Posted by James Benson on 10/19/89 11:30

If you have a checkbox you just test if the value is set with isset()
if it's not set they never selected the checkbox.



Or if thats not what you mean maybe this could help
http://php.net/variables.external







Shaun wrote:
> Hi,
>
> I have some checkboxes on my page which correspond with boolean fields in my
> database - actually they are TINYINT's in which I store a 0 or 1 in for
> false and true values respectively.
>
> Is it possible to loop through all $_POST values to see if it is a checkbox?
> If so then for that element if it is equal to 'on' then change it to 1
> otherwise change it to 0?
>
> Thanks for your advice.

 

Navigation:

[Reply to this 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

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