A collection of 21 tips on process Web forms with PHP scripts. Clear explanations and tutorial exercises are provided on generating and processing Web forms, getting values out of $_REQUEST, processing multiple choices, removing slashes, adding multiple submit buttons, adding hidden values, processing original query string:
How To Retrieve the Submitted Form Data?
How To List All Values of Submitted Fields?
How To Retrieve Input Values for Checkboxes Properly?
How To Remove Slashes on Submitted Input Values?
How To Support Multiple Submit Buttons?
How To Support Hidden Form Fields?
How To Retrieve the Original Query String?
How To Protect Special Characters in Query String?
...
Platform(s): Linux, Windows, FreeBSD, Mac OSX, Sun Solaris
Learn how to create an expandable Form Validation Class using PHP's object oriented features that once complete, can be easily customized and expanded to suit your needs in the future with no changes to the base code. The Class will able to validate everything from Email Address, Passwords, User Names, Domain Names, Credit Cards, Numbers, Strings, HTML, Etc. Very detailed with extensive code segments to guide you every step of the way.
In Part 1 of this tutorial series, we created the core of our Class. In Part 2 here, we learn how to expand on our Class to allow form fields to be validated as well as returning and generating the many error messages when validating.
Learn how to create an HTML form and how to program a simple PHP page to process the information of that HTML form. A basic knowledge of HTML will make this tutorial easier.
In depth tutorial focusing on the basics of processing a contact form. Includes necessary error checking and clear, simple explanations of all the code. Part 1 can also be found on the site which features the creation of the form itself in HTML
One of the most popular ways to make a web site interactive is the use of forms. With forms you can have users register for different things, submit any information you can imagine, upload files, and all types of other things. In this tutorial, we will go through the basics of forms and how to handle the data that comes from those forms with PHP.