Re: Using switch() to process a set of forms
| From: | Jochem Maas | Date: | Tue, 08 Mar 2005 16:50:56 +0000 |
| Subject: | Re: Using switch() to process a set of forms | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-210233@lists.php.net to get a copy of this message | ||
Franklin van de Meent wrote:
On Mon, 07 Mar 2005 19:19:24 -0600, Greg Dotts <listmember@dottsfamily.com> wrote:which is a really crap way of referencing forms - besides given that a form is a unique entity its better to reference it by id IHMO. in a perfect world you could just use document.getElementById() and be done with it.Sure enough Kirk! That was it. Seems strange that you can set a name/value pair on the <form> tag, but they aren't used. Guess they were just kidding ;-)The name attribute is used in javascript, for example when you are changing a field value: document.formname.fieldname.value = 'foo';
The value attribute does not exist for the form tag, go to http://www.w3schools.com/tags/tag_form.asp for a list of allowed attributes