You are here: Re: Form with 2 submit buttons... « HTML « IT news, forums, messages
Re: Form with 2 submit buttons...

Posted by Miguel Cruz on 08/08/06 03:13

"Sonnich" <sonnich.jensen@elektrobit.com> wrote:
> Miguel Cruz wrote:
>> "Sonnich" <sonnich.jensen@elektrobit.com> wrote:
>>> if( !(isset($_POST[$part1[$i]]) && ($_POST[$part1[$i]] == "")) )
>>
>> Are you sure you want $_POST[$part1[$i]] ? Maybe $_POST[$part1][$i] ?
>>
>> Hard to know without understanding how your form and code look, but my
>> proposed alternative is more typical for dealing with checkboxes.
>>
>> If I am correct in my theory, turning on E_ALL error reporting would
>> have drawn attention to the issue.
>
> I have a number of checkboxes, which are created from a DB. I read a
> number of codes into an array $part1[]= then I create the checkboxes
> Name=\"$part1[$i]] \" and at the same time set them to checked or not.
> At first they should be checked, but the user can select to uncheck
> them. Then, when submitting the now present values should be in use.

In that case you definitely want $_POST[$part1][$i] .

miguel
--
Photos from 40 countries on 5 continents: http://travel.u.nu
Latest photos: Malaysia; Thailand; Singapore; Spain; Morocco
Airports of the world: http://airport.u.nu

 

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

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