Re: PHP and XHTML
| From: | Manuel Lemos | Date: | Sun, 20 May 2001 16:48:30 +0000 |
| Subject: | Re: PHP and XHTML | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-53612@lists.php.net to get a copy of this message | ||
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
--