This article will touch on two skills in the interface between PHP and HTML forms, specifically in working with hidden fields, and as a bonus, in passing arrays in an HTML form.
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
Using PHP array functions to view all of your POST/GET Variables make it easy for retrieving data from online forms. It's also great for debugging your codes.
This is an illustration of how to send email through PHP. I did not create a function because I feel mail() is already a wrapper all by itself. I left the first parameter empty because I feel that the "to row" is not any more important than any other row in the header string.
Another very good, and very easy way to use PHP to do something that is more complicated in other languages is form processing and sending e-mail. PHP makes it easy for even the most neolithic of us. This two-page tutorial shows you how.
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.
This is a basic, and very easy to understand,
tutorial on how to make one file to do it all--
Shows the contact form, then upon submit,
will automaticly update the page with a message,
while PHP sends out the email.