Re: mixing HTML and PHP code

From: Date: Thu, 11 Jan 2001 23:23:16 +0000
Subject: Re: mixing HTML and PHP code
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-34128@lists.php.net to get a copy of this message
yes: if you have ever worked in a fast paced production environment, where html is changed sometimes 5 times a day, digging through hundreds of lines of: echo "<input type=\"text\" name=\"hello\" size=\"20\" value=\"$value\">" starts to make you insane. speaking as an html author, and a lover of php, _please_: <input type="text" name="hello" size="20" value="<?=$value?>"> it makes the code useable. I've had to avoid using many otherwise cool PHP "products" because of the echo problem. as part of the code standard for binarycloud I specifically outline this: : _never_ and I do mean that _never_ use echo for printing html. it makes your apps impossible to change, and in a production environment, that's not ok. what if I find a problem in your table code? etc. -alex -- Alex Black, Head Monkey enigma@turingstudio.com The Turing Studio, Inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 Saul Zaentz Film Center 2600 Tenth St Suite 433 Berkeley, CA 94710-2522 > From: burk@pobox.com > Newsgroups: php.general > Date: 11 Jan 2001 12:40:18 -0800 > Subject: Re: [PHP] mixing HTML and PHP code > > On Wed, 10 Jan 2001, Alex Black wrote: >> >> definitely avoid print() and echo like the _plague_ for html output. >> > > Do you have any reason for saying that other than that you don't like that > style of code? > > -burk > > -- > burk@pobox.com > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#34128) next »