having a poll question on multiple websites?

Discussion in 'PHP' started by billybrag, Nov 6, 2006.

  1. #1
    Hello all,

    I currently have a poll which i would like to users to be able to post on their sites,

    ie have a code that will display the form which has the question and options displayed on it and when the user votes they are taken to my page that computed the responce. Is this easy to do and are there any security issues that i should be aware of?

    also, would there be a way to stop multi submissions and display the results remotely?

    if you get me :confused:
     
    billybrag, Nov 6, 2006 IP
  2. disgust

    disgust Guest

    Messages:
    2,417
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    0
    #2
    this can be done.

    have the links go to site.com/poll/?vote=2

    where two would be option 2, etc.

    to stop multiple submissions, either use cookies or IP tracking or both.
     
    disgust, Nov 6, 2006 IP
  3. streety

    streety Peon

    Messages:
    321
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You can have a form on one website submit to a different website by correctly setting the action attribute.
     
    streety, Nov 6, 2006 IP
  4. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #4
    mad4, Nov 6, 2006 IP
  5. billybrag

    billybrag Peon

    Messages:
    324
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    what about pulling the results once it is done? and actually calling the form in the firstplace - will it slow down the calling and or target site?
     
    billybrag, Nov 6, 2006 IP
  6. billybrag

    billybrag Peon

    Messages:
    324
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I have the poll script already in place on my site (the organic one in me sig)
     
    billybrag, Nov 6, 2006 IP
  7. disgust

    disgust Guest

    Messages:
    2,417
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    0
    #7
    no, it won't slow things down. it won't even make a call to your site if you do it right. see my post. all you need is a link with a GET variable.

    then in PHP all you need to do is yourvotefunction($_GET['vote']);
     
    disgust, Nov 6, 2006 IP
  8. billybrag

    billybrag Peon

    Messages:
    324
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #8
    what i mean is, on the users site they will have to include the form that i have and will that slow their site down,

    sorry if i am misinterprating what you are saying
     
    billybrag, Nov 6, 2006 IP
  9. disgust

    disgust Guest

    Messages:
    2,417
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    0
    #9
    you could have code that wouldn't need to include anything from your site. code that only calls things on their site. it'd only make requests from your site when votes are being made.
     
    disgust, Nov 6, 2006 IP