Re: problem with foreach

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/22/07, Adam Williams <awilliam@xxxxxxxxxxxxxxxx> wrote:
>
> I have an html page with checkboxes:
>
> <form action=mailform2.php method=POST>
> <input type=checkbox name=option[] value="Modern Mississippi">Modern
> Mississippi<br>


Change to: <input type="checkbox" name="option[]" value="..." />...<br/>

Someone mentioned this earlier, but I thought I'd reiterate. I'm not sure
how the browser will deal with *arrays* that aren't quoted. It's very good
practice to explicitly tell what is what - don't let the browser interpret
as it wants to. (Side note: the / at the ends are for XHTML - they're
optional if only using HTML.)

~Philip

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux