Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: PHP solution

  1. #1
    New to the CF scene
    Join Date
    May 2011
    Bergen, Norway
    Thanked 0 Times in 0 Posts

    PHP solution

    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?

  • #2
    Senior Coder
    Join Date
    Feb 2011
    Your Monitor
    Thanked 546 Times in 533 Posts
    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.
    I can't really think of anything to write here now...

  • #3
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Saskatoon, Saskatchewan
    Thanked 2,662 Times in 2,631 Posts
    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.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts