Re: Re: Forms in PHP

From: Date: Fri, 12 Apr 2002 08:08:32 +0000
Subject: Re: Re: Forms in PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-92732@lists.php.net to get a copy of this message
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 <dave@settler.ch> > Date: Fri, 12 Apr 2002 08:33:36 +0200 > To: php-general@lists.php.net > 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 >

« previous php.general (#92732) next »