Solved

PHP Download form

Posted on 2013-01-27
1
296 Views
Last Modified: 2013-01-28
Hi,

I have a form which i have made a table inside of. the table has a checkbox as an input on each row of the table. each row corresponds to a document on the server. and then a submit button on the bottom of the table which reads download. i would like to create a form that allows users to select the different checkboxes and then select download and the result would be the user then downloads the items corresponding to the checkboxes. i am not sure how to accomplish this any help would be greatly appreciated

Firstly, i will explain a little more of what im working with. i have a linux server hosted on godaddy with about 20 files one it of varying sizes and formats. i have placed restrictions/premissions via CHmod on the folder than contains these files on the server. i have then created a seperate .php that lists all these documents within a table. the table has one row for each document on the server and six columns. the columns from left to right include:
 1. checkboxes
 2.  Names of document
 3. document identifier
 4. description of document
 5. version of document
 6. upload date

to accomplish the checkbox functions i have placed the entire table within a form. i have not given the form a name or action its simply <form>

i have then gone down on the first column to give a checkbox with a unique name and id to each row/document
<input type="checkbox" name="checkbox-1" id="checkbox-1"/>

at the very bottom i have included two buttons.

Once for select all and the other for unselect <-- havent got those to work yet but i just thought of the idea this morning.

finally, i have put a third input as a submit with the name, value, id oF Download and closed the form

this is pretty much where i am at the moment. i like your idea about placing it into a zip file i think that is a great idea. however i am not sure how i would go about this.

any help will be greatly appreciated
0
Comment
Question by:M. Jayme Nagy
1 Comment
 
LVL 28

Accepted Solution

by:
Pravin Asar earned 500 total points
Comment Utility
To add the files residing at server, it quite simple task

Refer
http://davidwalsh.name/create-zip-php


Look at

http://www.9lessons.info/2012/06/creating-zip-file-with-php.html

This talks about a similar problem.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now