I have a bunch of photo records in my database which I pull and print to the screen using php. I'd like to create a scenario in which you can select multiple photos, and have their IDs stored so that you can download them as a group later.
Example Table Structure printed using php:
First Name | Last Name | Photo ID | Add - Delete
John | Smith | 234 | Add - Delete
Barry | Bonds | 298 | Add - Delete
Test | Testerson | 143 | Add - Delete
Example usage: Site user can select 'add' or 'delete' to add or remove the photo ID to or from the list. When the user is done selecting photos, the photos are downloaded based on the IDs stored by AJAX. I envision this process being similar to a 'lightbox' that I have seen before on photo sites such as Dreamstime.com and the like.
Anyone have any easy to implement ideas on how to get this done? I just don't want the page to continually be refreshing while the user selects add or delete for each photo.
Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.
Delegation allows a single script that is added at page creation to mat…
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 …
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing.
Set up your basic HTML file. Open your form tag and set the method and action attributes.:
Set up your first few inputs one for the name and …