I created this form on my graveyard site so users can share their own graveyard. It allows the user create a small profile of the grave yard and upload 5 images to the server. After filling out the form the data will be inserted into a MySQL table to be displayed later on the page they created. The page is created automatically, but I will show how that is done in a separate post. The images are uploaded to a server to be placed in unique folder to be easily displayed. From my past experience it is very important to prevent spam when creating HTML forms. I used Google’s Captcha to prevent the spam. It was very easy to setup and is very effective.
I have the files below that I created. They have examples of:
- Inserting HTML form data into a MySQL Table
- Inserting multiple images into a server using a form
- Using Google Captcha to prevent spam.
I have them as downloadable text files because I thought it would be easier to read.
Here is the HTML form for user to fill out and insert the photos:
Here is the php file to do all the leg work: