Reading "Creating Interactive Websites with PHP and Web Services" (Sybex) by
Eric Rosebrock.

I've found it a good textbook and wanted to get some feedback from the group
about two things I noticed in most of the code throughout the book which has
helped me.

1. The author separtares .html form from .php script by using many include()
functions for the .html files.  I have found that that helps from getting
parse errors from the many escaped strings throughout the .html within a
.php file if the coder can separate the .html markup from the backend script
as much as possible.

Kind of like CSS which can separate form from content.

2. The author makes use of many switch() constructs throughout the book as
opposed to if / else.

He brings in variables from query strings when the user submits the .html
form to match the switch() contructs which then decides what action will
follow.

Anyway, I found the textbook a nice change in the way he presented his
scripts and thought others would like to share any feedback if they have
read or are reading the book.

TIA
TR

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to