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/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to