Most dynamic web sites rely heavily on forms. From user authentication to entry of news items, we use forms to accept user input. There are many different ways we can validate data from the user. In this tutorial, we will examine several of the more common items that need validation and provide examples for each. We will also explore how to check documents for misspelled words and suggest proper replacements.
Platform(s): Linux, Windows, FreeBSD, Mac OSX, Sun Solaris
Fast and easy way to make the needed item from a list of items in a form choosen as default. The example shows how to use it to select a country from a list.
Input is one of the most important aspects of any program, in any programming language. In this tutorial, you will learn how to create an HTML form to accept user input and then how to retrieve that input in PHP.
In this part four of a series on HTML form handling with PHP, it explains how to create a powerful PHP form handler, called Phorm Manager. Topics include: Design goals, Internal data management, form validation, and more. Full source code available.
PHP provides a handy and convenient way to send email through the mail() function. This function is a great way to send mail using a simple and standard interface that hides the complexity and quirks of various system programs that are responsible for sending mail. This tutorial will introduce you to the basics of sending mail from PHP scripts and making a simple feedback form.
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
Many beginners want to create their own forms to let their users input and submit data to them. Here we teach you how you can create these forms, and use PHP to enhance their capability. Radio buttons, checkboxes, and regular text boxes are a few of the items covered.