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.
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.
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.
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.
Intended for programmers interested in experimenting with complex user interface elements, this tutorial explores using PHP to generate JavaScript based on data in a database. This tutorial explains a class called chainedSelectors. This class helps you create a SELECT form field that automatically updates the value of another SELECT using JavaScript. PHP is used to retrieve the values for the selectors from a MySQL database. This data is then used to create a JavaScript function that's triggered when the value of the first selector is changed.