I am using MySQL Database
under which I have a table named sponsors
having following columns.
id | project_id | project_name | sector | duration | budget | location
Now, I have created a page in php
on which a user can select multiple projects at a time by clicking on the checkbox as you can see in the image below :
After selecting the projects, when user clicks on submit, a pop-up form will appear like this :
On which there should be the comma separated values of project_id
(from the Database) of all the selected projects by user.
So far I've done this much coding :
<!-- //CheckBOX -->
<td> <input type="checkbox" name="check_id[]"
value="<?php $row["project_id"];?>"> </td>
<td> <?php echo $data["project_id"]; ?> </td>
<td> <?php echo $data["project_name"]; ?> </td>
See this to have a view of full code.
So, my question is How to fetch column values from database onto a Pop-up form for only those projects that have been checkbox selected by user ?
How can I achieve that. I am open to accept any sensible solution in any language, but would prefer to have it in JavaScript or php .