[PHP] PHP DOM XHTML - let me set my own javascript from code

2005-10-18 Thread Petr Smith

Hi,

I have problem with PHP DOM extension. How can I add my own javascript 
to javascript tag?


I tried it using this code

$html = !DOCTYPE html PUBLIC \-//W3C//DTD XHTML 1.0 Strict//EN\ 
\http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\;\n .

\n .
html xmlns=\http://www.w3.org/1999/xhtml\; xml:lang=\en\ 
lang=\en\\n .

 head\n .
script  type=\text/javascript\ language=\Javascript\ /\n .
/head\n .
bodyhello\n .
/body\n .
/html;
$dom = new DomDocument();
$dom-preserveWhiteSpace = true;
$dom-loadXML($html);
$params = $dom-getElementsByTagName('script');
foreach ($params as $param) {
  $dat  = $dom-createTextSection(\n\nalert('ddd');\n\n);
$param-appendChild($dat);

}
echo $dom-saveXML();

but it encloses it to CDATA section automatically like this:

script type=text/javascript 
language=Javascript![CDATA[alert('ddd');]]/script


but I need it like this (because otherwise the javascript don't work):

script type=text/javascript language=Javascript
//![CDATA[
alert('ddd');
//]]
/script

Thanks for any idea,

Petr

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP and XHTML

2002-01-28 Thread Erik Price


On Saturday, January 26, 2002, at 05:49  PM, ,,, wrote:

 When I have an ? xml version=1.0 ? inside my php script it wont work 
 since
 php parses it as php code.

 Will short_open_tag = Off solve it? I would really like to use ? ? 
 for the
 rest of my php code...there must be a better solution than 
 Short_open_tag

Something to keep in mind -- I read somewhere that using short tags is 
in fact NOT in compliance with the rules of XHTML.  I'm not sure where, 
though, because now that I think about it, there wouldn't be any tags at 
the time that the page is served by the web server.  Hmm...

Google to the rescue.  Look right in the first couple of paragraphs of 
the following:

http://unixtech.be/docs/php/language.basic-syntax.html
While the short-form tags and ASP-style tags may be convenient, they 
are not as portable as the longer versions. Also, if you intend to embed 
PHP code in XML or XHTML, you will need to use the ?php. . .? form to 
conform to the XML. 

Better whip out that batch-file regex!!  :)


Erik


-- 
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]




Re: [PHP] PHP and XHTML

2002-01-28 Thread bvr


Then why not do this :

?
   echo(? xml version=1.0 ?);
?

bvr.


On Mon, 28 Jan 2002 18:49:18 -0500, Erik Price wrote:


On Saturday, January 26, 2002, at 05:49  PM, ,,, wrote:

 When I have an ? xml version=1.0 ? inside my php script it wont work 
 since
 php parses it as php code.

 Will short_open_tag = Off solve it? I would really like to use ? ? 
 for the
 rest of my php code...there must be a better solution than 
 Short_open_tag




-- 
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]




[PHP] PHP and XHTML

2002-01-26 Thread ,,,

When I have an ? xml version=1.0 ? inside my php script it wont work since 
php parses it as php code.

Will short_open_tag = Off solve it? I would really like to use ? ? for the 
rest of my php code...there must be a better solution than Short_open_tag


regards,
Cyth



--
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]




[PHP] PHP and XHTML

2002-01-26 Thread Frans Englich

When I have an ? xml version=1.0 ? inside my php script it wont work since 
php parses it as php code.

 Will short_open_tag = Off solve it? I would really like to use ? ? for the 
rest of my php code...there must be a better solution than Short_open_tag


 regards,
 Cyth

--
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]




Re: [PHP] PHP and XHTML

2002-01-26 Thread Nick Wilson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


* and then ,,, blurted
 When I have an ? xml version=1.0 ? inside my php script it wont work since 
 php parses it as php code.
 
 Will short_open_tag = Off solve it? I would really like to use ? ? for the 
 rest of my php code...there must be a better solution than Short_open_tag

Hmm... I had that problem too, the only I solved it was by using
templates. I know that may not help, sorry, just wanted to let you know
that it can be done. I'll follow this thread closely as *proper* XHTML
is a subject close to my heart :)
- -- 

Nick Wilson

Tel:+45 3325 0688
Fax:+45 3325 0677
Web:www.explodingnet.com



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE8UzTuHpvrrTa6L5oRAku3AKCJ4SdFzo9g2lcoeFwY6uJ/tkOzQgCgpNiq
Lr+KMndWgO4PF/fkpmcR8G8=
=LNVw
-END PGP SIGNATURE-

-- 
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]




Re: [PHP] PHP and XHTML

2002-01-26 Thread Jeff Sheltren

Hi.  Have you tried something like:

? echo(? xml version=\1.0\ ?\n); ?

I've not tried using xml  php, but that may work...

Jeff
- Original Message -
From: Frans Englich [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, January 26, 2002 2:53 PM
Subject: [PHP] PHP and XHTML


When I have an ? xml version=1.0 ? inside my php script it wont work
since
php parses it as php code.

 Will short_open_tag = Off solve it? I would really like to use ? ? for
the
rest of my php code...there must be a better solution than Short_open_tag


 regards,
 Cyth





-- 
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]




Re: [PHP] PHP and XHTML

2002-01-26 Thread Nick Wilson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


* and then Jeff Sheltren blurted
 Hi.  Have you tried something like:
 
 ? echo(? xml version=\1.0\ ?\n); ?

*Good* idea, tell us if it works!

- -- 

Nick Wilson

Tel:+45 3325 0688
Fax:+45 3325 0677
Web:www.explodingnet.com



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE8UzhFHpvrrTa6L5oRAtEiAJ0b1D5tHcQMSpWCitYvIbmiHpkvpgCgkONa
lBx9rwVVindWYbIifw4EyVs=
=WHxj
-END PGP SIGNATURE-

-- 
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]




Re: [PHP] PHP and XHTML

2002-01-26 Thread Frans Englich


This works just perfectly:

 ?echo(?xml version=\1.0\?); ?


 regards,
 Cyth

 ---

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


* and then Jeff Sheltren blurted

 Hi.  Have you tried something like:

 ? echo(? xml version=\1.0\ ?\n); ?

*Good* idea, tell us if it works!

- --

Nick Wilson

Tel:+45 3325 0688
Fax:+45 3325 0677
Web:www.explodingnet.com



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE8UzhFHpvrrTa6L5oRAtEiAJ0b1D5tHcQMSpWCitYvIbmiHpkvpgCgkONa
lBx9rwVVindWYbIifw4EyVs=
=WHxj
-END PGP SIGNATURE-


--
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]




Re: [PHP] PHP and XHTML

2002-01-26 Thread Tom Rogers

Hi
use single quotes and it is simpler

echo '?xml version=1.0?';

Tom
At 09:40  27/01/02, Frans Englich wrote:

This works just perfectly:

  ?echo(?xml version=\1.0\?); ?


  regards,
  Cyth

  ---

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


* and then Jeff Sheltren blurted

  Hi.  Have you tried something like:
 
  ? echo(? xml version=\1.0\ ?\n); ?

*Good* idea, tell us if it works!

- --

Nick Wilson

Tel:+45 3325 0688
Fax:+45 3325 0677
Web:www.explodingnet.com



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE8UzhFHpvrrTa6L5oRAtEiAJ0b1D5tHcQMSpWCitYvIbmiHpkvpgCgkONa
lBx9rwVVindWYbIifw4EyVs=
=WHxj
-END PGP SIGNATURE-


--
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]


-- 
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]




Re: [PHP] PHP and XHTML

2001-07-18 Thread Zak Greant

Hi Daniel,

Set short_open_tag = Off in your php.ini file and the problem will go away.

--zak

Rose, Daniel wrote:
 Hi,
 I have looked through the history of the list, and I see that several
people
 have said that PHP fully supports XHTML. I have some problems using XHTML
 with PHP, namely parse errors, such as a parse error on the first line of
 every XHTML doc.
 ?xml version=1.0 encoding=UTF-8?
[...]


-- 
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]




[PHP] PHP and XHTML

2001-07-17 Thread Rose, Daniel

Hi,
I have looked through the history of the list, and I see that several people
have said that PHP fully supports XHTML. I have some problems using XHTML
with PHP, namely parse errors, such as a parse error on the first line of
every XHTML doc.
?xml version=1.0 encoding=UTF-8?

Version of PHP is 4.0.6, and it was compiled like so:
'./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml'
'--with-gd=/usr' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local'
'--with-zlib' '--with-mysql' '--enable-track-vars' '--with-mcrypt'
(all from phpinfo())

Does anyone have any ideas?
Please CC replies as I am not subscribed to the list
Sincerely,

Daniel Rose


-- 
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]




Re: [PHP] PHP and XHTML

2001-05-21 Thread Christian Reiniger

On Sunday 20 May 2001 20:51, Manuel Lemos wrote:
 Hello Navid,

 On 20-May-01 14:36:33, you wrote:
 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?

 It depends.  If what is going to process the document is a regular
 browser, the NAME attribute is what matters.  Future browsers will have
 to handle current HTML compatibly. So there is no point in removing the
 NAME attribute.

Why not specify both? 

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

Those who will not reason, are bigots,
those who cannot, are fools,
and those who dare not, are slaves.

- George Gordon Noel Byron (1788-1824), [Lord Byron]

--
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]




Re: [PHP] PHP and XHTML

2001-05-20 Thread Manuel Lemos

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]




RE: [PHP] PHP and XHTML

2001-05-20 Thread Navid Yar

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:[EMAIL PROTECTED]]
Sent: Sunday, May 20, 2001 11:49 AM
To: [EMAIL PROTECTED]
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/?[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]


-- 
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]




RE: [PHP] PHP and XHTML

2001-05-20 Thread Manuel Lemos

Hello Navid,

On 20-May-01 14:36:33, you wrote:

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?

It depends.  If what is going to process the document is a regular browser,
the NAME attribute is what matters.  Future browsers will have to handle
current HTML compatibly. So there is no point in removing the NAME attribute.

BTW, you may want to look into this forms generation and validation class
that outputs XHTML compatible code although it is up to the developer to
specify the ID attribute or not.

http://phpclasses.UpperDesign.com/browse.html/package/1

Manuel Lemos


Navid Yar

-Original Message-
From: Manuel Lemos [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 20, 2001 11:49 AM
To: [EMAIL PROTECTED]
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/?[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]


-- 
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]



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]




Re: [PHP] PHP and XHTML

2001-05-20 Thread Chris Sano

XHTML is just making your HTML documents XML ready. This means closing your
tags, etc..

And Rasmus is right when he says PHP is 100% compatible with XHTML.

-C

[EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 i won't pretend to be an XML guru, but isn't saying php won't work with
XHTML akin to saying
 php won't work with javascript1.3, dhtml, netscape 6 etc?
 php generates code...html, dhtml, whatever...i fail to see how php
couldn't generate
 what anyone would need for XHTML, or anything else along those lines

 -jack

 - Original Message -
 From: Rasmus Lerdorf [EMAIL PROTECTED]
 Date: Friday, May 18, 2001 6:59 pm
 Subject: Re: [PHP] PHP and XHTML

   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.
 
  Completely false.  PHP works fine with XHTML.
 
  -Rasmus
 
 
  --
  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: php-list-
  [EMAIL PROTECTED]
 



 --
 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]




-- 
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]




[PHP] PHP and XHTML

2001-05-18 Thread Navid Yar

Hello,

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.

Navid Yar


-- 
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]




Re: [PHP] PHP and XHTML

2001-05-18 Thread Rasmus Lerdorf

 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.

Completely false.  PHP works fine with XHTML.

-Rasmus


-- 
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]




Re: [PHP] PHP and XHTML

2001-05-18 Thread dempsejn

i won't pretend to be an XML guru, but isn't saying php won't work with XHTML akin 
to saying
php won't work with javascript1.3, dhtml, netscape 6 etc? 
php generates code...html, dhtml, whatever...i fail to see how php couldn't generate
what anyone would need for XHTML, or anything else along those lines

-jack

- Original Message -
From: Rasmus Lerdorf [EMAIL PROTECTED]
Date: Friday, May 18, 2001 6:59 pm
Subject: Re: [PHP] PHP and XHTML

  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.
 
 Completely false.  PHP works fine with XHTML.
 
 -Rasmus
 
 
 -- 
 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: php-list-
 [EMAIL PROTECTED]
 



-- 
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]




Re: [PHP] PHP and XHTML

2001-05-18 Thread Brian Clark

Hi Rasmus,

@ 6:59:09 PM on 5/18/2001, Rasmus Lerdorf 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.

 Completely false.  PHP works fine with XHTML.

In fact, I wrote a Swiss Army Chain Saw type of class, that started
out as an XHTML class of sorts, to speed up my development. Navid, are
you sure you aren't confusing XHTML with XML?

-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.


-- 
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]