In the last exciting episode of the PHP Phanatics, we explored the inner workings of PHP's unique $GLOBALS array. Several sharp-eyed readers pointed out a bug in the script dumping the contents of the $GLOBALS array. If an array element was itself an array, the display listed that fact rather than the contents of the component array. The displayed line looked like:
This tutorial follows on from "In Depth Contact Form Part 1 - The Form Itself" that describes the process involved in making the contact form as the user sees it. The second part of the tutorial details the PHP code that checks data has been entered and send an email containing this data.
This is a simple tutorial that explains how to make a form in PHP. Forms can be used in many different ways on your web page. It is almost impossible to find a webpage today that does not utilize some type of form.
Checkboxes are just html. Anybody can code them. Actually, checkboxes belong somewhere between the open form element, and the close form element. The open form element should have at least a name, method and action properties and optionally an enctype property for file/image uploads. Just like this:
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.