Wednesday, 12 January 2011

Product Details & Image Upload Form

I have previously created a product details form that just uploaded information about products and I created an upload image form which uploaded the image to my images folder but I couldn't figure out how to get the image url to automatically store into my database. I have now put everything into one form and taken and the shop name and shop address out of the form because the user will need to log into the site anyway to access this form so we will know who has logged in and I have also managed to get the image upload so it stored correctly in my database. Below are some screenshots of how it looks and works:


Above is the form the user enters the data into.

Above shows the user choosing an image to upload.

Above is the form with the user input showing.

Above is showing the image/ product has been added.

Above shows the uploaded image in the 'images' folder on my site.

Above shows the image that has been uploaded.


Above is a screenshot to show the product the user typed in has been inserted into the database.

No comments:

Post a Comment