.
Developer Spot - Web Development Tutorials
arrowDeverloper Spot  Tutorials  PHP  Email Forms In PHP, The Easiest Yet... 
 
Development Tutorials
ASP
CGI & Perl
CSS
HTML
Java
JavaScript
Linux
PHP
XML




More Resources
Web Hosting Articles
Web Development News
PHP Manual
Web Hosting Directory
Budget Web Hosting Linux Web Hosting Small Business Hosting
Windows Web Hosting Reseller Web Hosting Web Hosting Articles

Email Forms In PHP, The Easiest Yet...

By Dan Ball
2003-09-27
Bookmark Print Version
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.


Article Pages:
PHP Email Form Introduction
Barebones PHP Basics
The Form
Processing The Mail
Compiling And Sending The Email
Final Thoughts

 Rate this article:   Poor          Excellent 


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



 
Development Tutorials: CGI & Perl - CSS - HTML - Java - JavaScript - Linux - PHP - XML
More Resources: Web Hosting Articles - Web Development News - PHP Manual