Actually since everything is going to XML compliance you will not want to
leave out the quotes since it is a very very structured language you could
hang everything without your quotes :)  Just because it works, doesn¹t mean
it's the best way of doing it.  Browsers try to parse html with the
sloppiest coder in mind so that way they are really forgiving in code.

So best practice.. Code like it's xhtml and you'll make everyone gasp and
say what pretty html you have :)

Rick

"If you're going to be able to look back on something and laugh about it,
you might as well laugh about it now." - Marie Osmond

> From: Dave <[EMAIL PROTECTED]>
> Date: Fri, 12 Apr 2002 08:33:36 +0200
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Re: Forms in PHP
> 
> 
>> 
>> May I also suggest that you rewrite your echo statements as:
>> 
>>   echo '<OPTION VALUE="donate">Donate this item</OPTION>';
>> 
>> Vastly improves legibility.
> 
> 
> or just
> 
> echo "<OPTION VALUE=donate>Donate this item</OPTION>";
> 
> is there any common use how it should be coded or does it really make no
> difference to forget the ""? i'm thinking here of old version of the
> php-parser or old webservers which could missunderstand the code. just
> to improve compatibility for further projects...
> 
> 
> 
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


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

Reply via email to