Checkboxes in web forms are useful because they allow the person filling out the form to choose from a wide range of possible choices. Specifically, it allows the user to choose some, all or none of the elements. Although checkboxes are excellent form elements for certain tasks, there is often confusion about how to store checkbox data correctly. This article will demonstrate how to store checkbox data in a database, in a manner that follows good database design principles.
Ever wondered how you can use a form to log someone in, or get information from the user and drop it into a database? This is a good example of how to get all of the info from those elusive cells. It also shows you how to make sure that they don't leave a field blank.
This tutorial teaches you how to process a simple feedback form. It records the date and time that the user logged into the system and saves this information, in addition to the user's name and email address, in several cookies. Upon subsequent logins, the code checks whether the user is a new or repeat user and displays information accordingly.
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.
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.