Reply to Re: Dummy question about knowing marked checkboxes

Your name:

Reply:


Posted by info on 10/21/94 11:17

The name property currrently set as the value of name='interesses' ... should be different for each different checkbox. Then you test for the value of 'on' or 'off'. If the checkbox is checked then the default value will be 'on'.

In your code you have set values but those are not strictly necessary because if no value is declared then 'on' or 'off' are used. Perhaps you may consider using the values Alojamento, Artesanato and Eventos for the names instead like this?

Example:
Alojamento <input name='alojamento' type='checkbox'>
Artesanato <input name='artesanato' type='checkbox'>
Eventos <input name='eventos' type='checkbox'>

Here's a basic checkbox article which may help:

http://www.globalissa.com/articles/articleCheckbox.php

Rob
http://www.globalissa.com

===
with reference to:
snip
My dummy question, for which i apologise once more is: after submitting the form, how can i know which chekboxes were checked ?

Thanking you in advance.

Warm Regards,
Mário Gamito

[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

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