Re: [SMARTY] PHP forms that are valid XHTML

From: Date: Wed, 31 Dec 2003 04:39:50 +0000
Subject: Re: [SMARTY] PHP forms that are valid XHTML
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10766@lists.php.net to get a copy of this message
Tim Burgan wrote:
Hello, I'm *very* new to PHP. I am working through the 'Professional PHP Programming' book by Worx. In their forms they use the name attribute (ie. name="example") instead of XHTML's id attribute (ie. id="example"). If I use 'name' my results display on the next page after the submit button is pressed, but if I change it 'id' the results do not display. How can I fix this?
Unless I'm way off base, name is necessary for the form data to be returned to the server. The id attribute is used for things like CSS and DOM. name, required. id, optional. I could be wrong, but my XHTML 1.1 Strict forms validate, so I shouldn't be too far off... -- jason lee README.txt -- http://jason.theleehouse.net Bosco -- http://bosco.sourcefourge.net

« previous php.smarty.general (#10766) next »