Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Database Systems

Authors: Carlo Zaniolo, Stefano Ceri, Christos Faloutsos, Richard T. Snodgrass, V.S. Subrahmanian, Roberto Zicari

1st Edition

155860443X, 978-1558604438

More Books

Students also viewed these Databases questions

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago