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
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.
You can have a form on one website submit to a different website by correctly setting the action attribute.
There are a lot of poll scripts, take a look at some and you can figure out how they work. http://www.seomoz.org/blogdetail.php?ID=1338 You will need to use AJAX for best results.
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?
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']);
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
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.