RE: [PHP] PHP and XHTML

From: Date: Sun, 20 May 2001 17:43:19 +0000
Subject: RE: [PHP] PHP and XHTML
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-53620@lists.php.net to get a copy of this message
Hello Manuel, So you suggest that I use the name attribute in XHTML and ignore the fact that it has been depreciated and replaced by the ID attribute? Will that solve my problem? Navid Yar -----Original Message----- From: Manuel Lemos [mailto:mlemos@acm.org] Sent: Sunday, May 20, 2001 11:49 AM To: php-general@lists.php.net Subject: Re: [PHP] PHP and XHTML Hello Navid, On 18-May-01 19:44:55, you wrote: >I would like to start using the XHTML syntax for my future projects, but I >heard that PHP is not compatible with XHTML. For example, in XHTML the ID >attribute is used in place of the deprecated NAME tag. But PHP depends on >the NAME attribute in forms, etc. Is there any way around this? Has anyone >used XHTML and PHP together successfully, and if so how did you get around >the previously mentioned problem? Any help woould be much appreciated, >thanks in advance. That's not a PHP problem. PHP just processes form values sent by the browser. It is up to the browser to pick the field names when the form is submitted. Anyway, I think that browsers will always pick the field names from the NAME attribute to keep backwards compatibility. Regards, Manuel Lemos Web Programming Components using PHP Classes. Look at: http://phpclasses.UpperDesign.com/?user=mlemos@acm.org -- E-mail: mlemos@acm.org URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#53620) next »