note 71871 deleted from tutorial.useful by salathe
| From: | salathe@php.net | Date: | Mon, 21 Sep 2020 14:28:24 +0000 |
| Subject: | note 71871 deleted from tutorial.useful by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215172@lists.php.net to get a copy of this message | ||
Note Submitter: rfantin at coralwood dot com
----
While it's easy to get carried away mixing your logic and presentation together since it's
so easy to do, you're better off using PHP within HTML only to fill in values, or include other
source files.
Keep your actual processing in separate libraries that are called before you send any headers to the
page. Try to avoid calling a script that retrieves or sets information, or manipulates it in the
middle of your HTML. You'll find it's much easier to maintain.