Re: ID vs NAME in different browsers

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

 



On 1/28/06, Niels <zorglub_olsen@xxxxxxxxxxx> wrote:

when making an input field for submission from a form, I need to put a
> name='something' in it. For CSS I often use an id='something'. Some
> browsers apparently submit the field properly if name is missing and id is
> present. Others might not. Can anyone tell me about what browsers do what?


HTML Forms should always use the NAME attribute to pass values, never ID.
You can use print_r($_REQUEST); at the top of your script to debug.

Jason

[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