Sometimes you might want to group form elements in arrays. Here’s a way to do that: The structure of the $_POST array will then be:
Here is a simple tutorial script that uploads a file to a folder on the server. In this example it is assumed that the file is an image and it will be outputted on screen in an img-tag. But the file uploading mechanics works for any file type.
A simple contact form, just for reference. Will add more info later on…
This is a slightly edited version of this post. Just to make it work with a checkbox instead of radio buttons.