Re: ID vs NAME in different browsers
| From: | Jason Petersen | Date: | Sat, 28 Jan 2006 15:47:17 +0000 |
| Subject: | Re: ID vs NAME in different browsers | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-229401@lists.php.net to get a copy of this message | ||
On 1/28/06, Niels <zorglub_olsen@hotmail.com> 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