Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Polls that allow integration?
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

Report this thread to moderator Post Follow-up to this message
Old Post
JSOUL dot com
04-12-05 01:56 AM


Re: Polls that allow integration?
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


Report this thread to moderator Post Follow-up to this message
Old Post
Lāʻie Techie
04-30-05 01:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Language archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:10 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.