Email Forms In PHP, The Easiest Yet...
By Dan Ball
2003-09-27

Barebones PHP Basics
A couple very basic concepts of PHP must be discussed before getting into this project further. First, PHP code is inserted into pages inside <?php and ?> tags. Though specific servers can be set up differently, this is the standard. Second, any page that contains any amount of those tags MUST have the .php or .php3 extension. The .php3 extension is for pages that are using features that were new to version 3 of PHP. Check with your system administrator for any rules regarding which extension you need to use, or if both are OK.
The PHP pages still contain a lot of typical HTML, so your pages will still need the typical <html>, <body>, etc. they just may not be right at the top like you are used to seeing because there may be PHP variables and such being defined before the tag. Also, like JSP and ASP, if you do a view source at the client level, you will only see the HTML and client-side scripting, because by that time all the PHP has been read and processed by the server and the resulting HTML is fed to the browser.
With all that being understood, let's get on with the fun stuff.
If you found this article interesting, you may want to read these as well:
» Protecting your PHP and HTML Source Code
» Publishing Newsletters Using PHP & MySQL - 4
» Publishing Newsletters Using PHP & MySQL - 3
» Publishing Newsletter Using PHP & MySQL - 2
» Publishing Newsletters Using PHP & MySQL
» Unix Webserver Crontab Basics
|