(HTML) Form element arrays
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:
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…
Sometimes you want to show or hide certain elements of a form, depending on the selection of a radiobutton. I am by no means any javascript ninja, but this is one simple way I came up with: This could apply to any element. For example, you could put a whole bunch of elements… Read More »
This is a slightly edited version of this post. Just to make it work with a checkbox instead of radio buttons.