Question: 1.In upload.php, create an HTML form that allows users to upload up to 3 files 2.In the same form, allow users to specify 3 tags

1.In upload.php, create an HTML form that allows users to upload up to 3 files 2.In the same form, allow users to specify 3 tags associated with each file (i.e. add 3 x 3 text input fields to the form) 3.submit button. 4.Set the action attribute of the form to itself, i.e. upload.php. 5.Still in upload.php, write PHP code that moves uploaded files into the uploads folder 6. Also in upload.php, write PHP code that writes (i.e. creates) one text file per uploaded file. This text file should: Have the same name as the uploaded file, e.g. if an uploaded file is called sanfrancisco.jpg, the accompanying text file should be called sanfrancisco.txt Contain the tags entered by the user for that file, separated by commas, e.g. landscape,city,evening. 7. Restrict file upload (using PHP code) to only images (including JPEG, PNG, GIF).

Output After uploading three images, your uploads folder should contain: - 3 image files (e.g. sanfrancisco.jpg, newyork.jpg, losangeles.jpg) - 3 text files (e.g. sanfrancisco.txt, newyork.txt, losangeles.txt) Each text file should contain 3 tags, e.g.: [la.txt] landscape,city,evening [newyork.txt] skyscrapers,city,night [sandiego.txt] landscape,city,sunshine

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!