View Full Version : PHP solution

05-27-2011, 09:12 AM
Hi guys,

I need help solving a little project I'm working on... I'm trying to make a site where you can choose multiple pictures when pressing them (just like when you are inviting people to a group on facebook, look at the image down below, for example)

And the images which the user pressed, would be printed on another page, kind of like "You choosed this pictures:"


How would you guys solve it?

05-27-2011, 11:08 AM
So what is the problem you are having?

If you are asking for someone to code this for you then it needs to go into the project requests forum instead because this forum is for assistance with technical issues.

05-27-2011, 03:48 PM
That is not a standard input element. Currently this does not reside as a PHP question.
What that would do is use javascript and populate invisible checkbox data to pass back to PHP. PHP doesn't care what makes the data, only what it looks like.
The above can be simulated with flat html by using simple checkboxes. These would be named something like friend[], and each value is given as a unique way to identify the selection. PHP will then be submitted with an array called friend in the _POST or _GET superglobal depending on what the form method is.