<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Random Poll Question"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "Random Poll Question"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Random Poll Question</title>
				<description><![CDATA[ I am at a total loss. Within my webpage, I am using a call function for a random poll as below .<br /> <br /> [code]&lt;?php<br /> require_once &quot;/home/content/n/o/t/xxxx/html/xxxx/booth.php&quot;;<br /> echo $php_poll-&gt;poll_process&#40;&quot;random&quot;&#41;;<br /> ?&gt;[/code]<br /> <br /> It works fine and the script is great. Is there a way to ensure the called "random" poll is not one that has already been voted on (using the cookie)?. I am sure the answer is easy, but I cannot figure it out.<br /> <br /> [code]&lt;?php<br /> /**<br /> * ----------------------------------------------<br /> * this code is optional<br /> * Important! You have to include it<br /> * before your html code<br /> * ----------------------------------------------<br /> */<br /> if &#40;!headers_sent&#40;&#41;&#41; &#123;<br /> $cookie_expire = 96; // hours<br />  <br /> $action = &#40;isset&#40;$_GET&#91;'action'&#93;&#41;&#41; ? $_GET&#91;'action'&#93; &#58; '';<br /> $action = &#40;isset&#40;$_POST&#91;'action'&#93;&#41;&#41; ? $_POST&#91;'action'&#93; &#58; $action;<br /> $poll_ident = &#40;isset&#40;$_GET&#91;'poll_ident'&#93;&#41;&#41; ? $_GET&#91;'poll_ident'&#93; &#58; '';<br /> $poll_ident = &#40;isset&#40;$_POST&#91;'poll_ident'&#93;&#41;&#41; ? $_POST&#91;'poll_ident'&#93; &#58; $poll_ident;<br />  <br /> if &#40;$action==&quot;vote&quot; &amp;&amp; &#40;isset&#40;$_POST&#91;'option_id'&#93;&#41; || isset&#40;$_GET&#91;'option_id'&#93;&#41;&#41;&#41; &#123;<br /> $cookie_index = intval&#40;$poll_ident&#41;;<br /> if &#40;!isset&#40;$_COOKIE&#91;'AdvancedPoll'&#93;&#91;$cookie_index&#93;&#41;&#41; &#123;<br /> $endtime = time&#40;&#41;+3600*$cookie_expire;<br /> setcookie&#40;&quot;AdvancedPoll&#91;$cookie_index&#93;&quot;, &quot;1&quot;, $endtime&#41;;<br /> &#125;<br /> &#125;<br /> &#125;<br /> ?&gt;[/code]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/6074/21966.php</guid>
				<link>https://proxy2.de/forum/posts/preList/6074/21966.php</link>
				<pubDate><![CDATA[Sun, 21 Jan 2007 09:51:18]]> GMT</pubDate>
				<author><![CDATA[ james_plato]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ I should add, basically, I want to use the cookies even if temporary. I need it just to work during the actually session the visitor spends on the site. You see I have a series of random polls, but I don't want to have the visitor (on the same session) to see polls they have already completed, I want it to skip only to uncompleted "random"  polls. Does that make sense?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/6074/21969.php</guid>
				<link>https://proxy2.de/forum/posts/preList/6074/21969.php</link>
				<pubDate><![CDATA[Sun, 21 Jan 2007 17:30:02]]> GMT</pubDate>
				<author><![CDATA[ james_plato]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Any takers on this?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/6074/22031.php</guid>
				<link>https://proxy2.de/forum/posts/preList/6074/22031.php</link>
				<pubDate><![CDATA[Tue, 30 Jan 2007 03:47:12]]> GMT</pubDate>
				<author><![CDATA[ james_plato]]></author>
			</item>
	</channel>
</rss>