Reply to Re: Is there any INPUT type that is stored in an array on PHP?

Your name:

Reply:


Posted by ptdorf on 09/16/07 13:43

> But using Checkboxes doesn't work, I've tried putting them with the
> same name but all that appears is a string of the LAST selected
> checkbox :S. Help?

I think you need check boxes here. html allow you to create many check
connected with the same name.

<input type="checkbox" name="options[1]" value="1" />Value 1
<input type="checkbox" name="options[2]" value="2" />Value 2
<input type="checkbox" name="options[4]" value="4" />Value 4


the submitted ones should appear as an $_POST array:
[options] => Array
(
[1] => 1
[4] => 4
)

[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

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