Code Comments
Programming Forum and web based access to our favorite programming groups.I'm trying to integrate a poll into a CMS - it's really simple. Person
votes, you see the result after clicking the vote. When a person comes
back to the site, if they voted, they are presented with the poll
results, not the poll questions. Many web sites emply this technology.
It is built into content management systems like NePHP (too high
priced) and PHPcow (OK but also encoded) and you can see these on
ESPN, CNN, etc.
I have been trying to integrate these packages into a web site CMS but
am having a difficult time. I get the results to show by using a
file_get_contents('http:/www.mydomain.com/script.php'); and wonder
whether this is part of the source of the problem too. I cannot find
any poll that works this way. I tried vote-pro.com but the poll
doesn't work in this fashion. Nice script but sloppy code and it won't
produce results based upon cookie/IP having voted before.
Can anyone give me some help? Man y thanks,
Mike
Post Follow-up to this messageOn Mon, 11 Apr 2005 15:47:51 -0400, JSOUL dot com wrote:
> I'm trying to integrate a poll into a CMS - it's really simple. Person
> votes, you see the result after clicking the vote. When a person comes
> back to the site, if they voted, they are presented with the poll results,
> not the poll questions. Many web sites emply this technology. It is built
> into content management systems like NePHP (too high priced) and PHPcow
> (OK but also encoded) and you can see these on ESPN, CNN, etc.
Simple - include the user_id (or username) with the vote. Voila! Only one
vote per user.
> I have been trying to integrate these packages into a web site CMS but am
> having a difficult time. I get the results to show by using a
> file_get_contents('http:/www.mydomain.com/script.php'); and wonder whether
> this is part of the source of the problem too.
If you pass in a URL to the file functions, the web server will execute
the PHP code before sending the output to your script.
HTH,
La'ie Techie
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.