You are here: Re: [PHP] Dummy question about gettion "select option" choosen « PHP « IT news, forums, messages
Re: [PHP] Dummy question about gettion "select option" choosen

Posted by "M. Sokolewicz" on 11/26/90 11:17

Kim Madsen wrote:
>>-----Original Message-----
>>From: Jochem Maas [mailto:jochem@iamjochem.com]
>>Sent: Monday, May 30, 2005 10:28 AM
>>To: Mário Gamito
>
>
>
>>>I now have this code in a form:
>>>---------------------------
>>><select name="interesse[]">
>>><option>1</option>
>>><option>2</option>
>>><option>3</option>
>>>(etc...)
>>></select>
>>
>>if the form containing this element is posted then the following will
>>so you what exactly is posted:
>>
>>var_dump( $_POST['interesse'] );
>>
>>which should show you an array of one or more items, which either
>>come from many form elements named 'interesse[]' OR from a single
>>element named 'interesse[]' where that element is multiselect
>>(in which case the definition should be something like:
>>
>> <select name="interesse[]" multiple>
>>
>>or
>>
>> <select name="interesse[]" multiple="multiple">
>
>
> I haven´t tried it but do You think that the multiple would work without a value in the option tag?
>
> <option>3</option>
>
> Should be
>
> <option value="3">3</option>
>
>
> --
> Med venlig hilsen / best regards
> ComX Networks A/S
> Kim Madsen
> Systemudvikler/Systemdeveloper
it *might* work, but it *should not* work.

 

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

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