Basics of HTML Form
- HTML Form Input Examples
Example code for all form input types.
How to get form submissions by email
It is very common use to have a form on your web site: get the form submissions by email.
For getting an idea how to do that, read :
For further details see:
- Form to email using ‘mailto’
- PHP Form to email sample
- Form mail script selection guide
- Perl based form mail
Using ‘mailto’ is the simplest way to have an email form. But is ‘mailto’ the best way?
Shows a simple, basic example on how to send form submission to an email address using PHP.Includes sample code too!
There are a number of form mail scripts available for free in the language (PHP,ASP, Perl) of your choice. How to choose among them?
Example usage of a Perl based, free form mail script.
Creating secure contact forms
- Free, simple, PHP based email contact form
Shows a simple php based email contact form with detailed explanation of the code.
PHP form tutorials
- PHP form tutorial: first steps
- PHP form processing
- Using the get method in a PHP form
- Using the POST method in a PHP form
- Handling checkbox in PHP form processor
- Using a select box in PHP
A very easy to follow, step by step PHP form tutorial.
Shows how to get the form submission data in the php script and then save the data to a MySQL database.
What is ‘GET’ method? how to access GET variables in a PHP form processor? See this article for details
What is ‘POST’ method? When to use POST method in a form rather than the ‘GET’ method? See this article for details.
Sample code and examples showing how to get single/multiple check box submissions in the PHP script.
Shows with example how to use a select box in PHP.
Advanced PHP form handling
- PHP Form Validation Script
- Using PHP_SELF in the action field of form
- Email form with file attachment in PHP
Introduces a generic PHP form validation script that you can use to quickly add form validation to your php form handlers.
This article shows the usage of PHP_SELF variable and how to avoid PHP_SELF exploits.
This article shows how to create a php based email form that supports file attachment.