Making a random selection website

Discussion in 'HTML & Website Design' started by gtag, Nov 28, 2007.

  1. #1
    I have a simple task (simple for most of you, impossible for me!) and was hoping to get some feedback to start on the right foot. I need to make a simple website that will simulate drawing names out of a hat. 11 people drawing each others' names out of a hat. They can't select their own, and 4 of the people can't select 2 specific people's names. Better said, jon, jo, jim and mary can't select fred and tom (and vice versa). but ed, red, mona, ursula and leo can pick any name but their own. Confusing to even explain Any insight on how to do this is greatly appreciated.
     
    gtag, Nov 28, 2007 IP
  2. gtag

    gtag Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    ALSO - I need them to be able to access the website, and draw the names secretly. So once a name is drawn, it has to be pulled from the list.
     
    gtag, Nov 28, 2007 IP
  3. gtag

    gtag Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    oh yeah. and i'll need a admin to check the list for errors, so somehow the results need to be posted to a separate file or page or something.
     
    gtag, Nov 28, 2007 IP
  4. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It isnt overly difficult to do,

    a) 1 table of a list of the people
    b) 1 table of illegal combinations
    c) 1 table for results

    randomly select one person from table A where their name does not appear in B or C

    The rest is simply having people log into a site, see if they are in table C, if not they can draw a name, if they are they simply see the drawn name.
     
    AstarothSolutions, Nov 28, 2007 IP