Home > Archive > PHP Language > April 2005 > Polls that allow integration?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Polls that allow integration?
|
|
| JSOUL dot com 2005-04-11, 8:56 pm |
| 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
| |
| Lāʻie Techie 2005-04-30, 8:55 am |
| On 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
|
|
|
|
|