I read a short thread at php.net regarding the use of ECHO.
I have an HTML form with PHP variables to define each input value (if any.)
For example:
<input type='text' name='firstname ' value='<?php echo $FirstName; ?>'>
I'm wondering if it makes any sense (performance and code-efficiency wise)
to do as follows:
<?php
echo("
<input type='text' name='firstname ' value='$FirstNa me'>
");
?>
Besides less typing, is there any additional benefits to wrapping the whole
form in PHP tags? Is there any drawbacks?
All comments welcome. Thanks.
I have an HTML form with PHP variables to define each input value (if any.)
For example:
<input type='text' name='firstname ' value='<?php echo $FirstName; ?>'>
I'm wondering if it makes any sense (performance and code-efficiency wise)
to do as follows:
<?php
echo("
<input type='text' name='firstname ' value='$FirstNa me'>
");
?>
Besides less typing, is there any additional benefits to wrapping the whole
form in PHP tags? Is there any drawbacks?
All comments welcome. Thanks.
Comment