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
[EMAIL PROTECTED]
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: [EMAIL PROTECTED]
> 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
>
> --
> [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]