<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Poll Interface"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "Poll Interface"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Poll Interface</title>
				<description><![CDATA[ This is a problem concerning PHP:<br /> <br /> I have a table with two cells beside each other.  I want to include PHP files in each cell so that I can make changes to each file, rather than the main file that contains the table.  The file included in the left cell will contain links.  [b][i]I want the file included in the right cell to contain polls, but I do not have it that way now...I would be happy with whatever as long as I don't have to make changes to the main file.[/i][/b]<br /> <br /> The idea is:  A user should be able to click any link in a list in the left cell, and the appropriate poll will display in the right cell.  I want links on the left for the poll, its results, and its comment.  I also want a poll's results link and comment link with it in the right cell.  I've been able to make the links (in the left cell) actually display the correct poll, but when I click the link (in either cell) to show the results for the same poll, it shows the results for the wrong poll...this is always the same poll's results no matter which results link I click.<br /> <br /> [i]Following is the code in the main PHP file:[/i]<br /> <br /> [b]index.php[/b]<br /> <br /> [i]in the left cell:[/i]<br /> [code]&lt;?php<br /> include&#40;&quot;mainleftwindow.php&quot;&#41;;<br /> ?&gt;[/code]<br /> <br /> [i]in the right cell:[/i]<br /> [code]&lt;?php<br /> <br /> /* path */<br /> $poll_path = &quot;/home/djtrits/public_html/polls/Polls&quot;;<br /> <br /> require $poll_path.&quot;/include/config.inc.php&quot;;<br /> require $poll_path.&quot;/include/$POLLDB&#91;class&#93;&quot;;<br /> require $poll_path.&quot;/include/class_poll.php&quot;;<br /> $CLASS&#91;&quot;db&quot;&#93; = new polldb_sql;<br /> $CLASS&#91;&quot;db&quot;&#93;-&gt;connect&#40;&#41;;<br /> <br /> $php_poll = new poll&#40;&#41;;<br /> <br /> /* the first poll */<br /> <br /> $php_poll-&gt;set_template_set&#40;&quot;djPollsMain&quot;&#41;;<br /> <br /> if &#40;$HTTP_GET_VARS&#91;'pid'&#93;&#41; &#123;<br />   $id=$pid;<br /> &#125;<br /> <br /> echo $php_poll-&gt;poll_process&#40;$id&#41;;<br /> <br /> ?&gt;[/code]<br /> <br /> [i]Following is the code in the file to go in the left cell:[/i]<br /> <br /> [b]mainleftwindow.php[/b]<br /> [code]&lt;?php<br /> <br /> $pid = '5';<br /> $enc_str = urlencode&#40;$str&#41;;<br /> <br /> echo &quot;&lt;a href='index.php?str=$str'&gt;go here&lt;/a&gt;&quot;;<br /> <br /> echo &quot;&lt;a href='index.php?action=results&amp;amp;poll_ident=5'&gt;Results&lt;/a&gt;&quot;<br /> <br /> ?&gt;[/code]<br /> <br /> Any help would be appreciated.<br /> <br /> Thanks!<br /> ordinary1]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3996/12412.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3996/12412.php</link>
				<pubDate><![CDATA[Mon, 13 Dec 2004 05:29:18]]> GMT</pubDate>
				<author><![CDATA[ ordinary1]]></author>
			</item>
			<item>
				<title>Someone please help!</title>
				<description><![CDATA[ Apparently, my question is one of two things:<br /> <br /> 1) Too difficult for everyone that has viewed it. <img src="https://proxy2.de/forum//images/smilies/136dd33cba83140c7ce38db096d05aed.gif" /> <br /> <br /> 2) Not interesting enough for anyone to care to help. <img src="https://proxy2.de/forum//images/smilies/b2eb59423fbf5fa39342041237025880.gif"  /> <br /> <br /> I don't know which one I would rather it be, but I hope someone will be smart enough and interested enough to offer some help.<br /> <br /> Whoever you are, thanks in advance! <img src="https://proxy2.de/forum//images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif" /> <br /> <br /> ordinary1]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3996/12453.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3996/12453.php</link>
				<pubDate><![CDATA[Wed, 15 Dec 2004 20:58:16]]> GMT</pubDate>
				<author><![CDATA[ ordinary1]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ You missed off the third option. YOU ARE TO IMPATIENT TO WAIT MORE THAN 3 1/2 HOURS.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3996/12454.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3996/12454.php</link>
				<pubDate><![CDATA[Wed, 15 Dec 2004 21:12:31]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [quote="Carbonize"]You missed off the third option. YOU ARE TO IMPATIENT TO WAIT MORE THAN 3 1/2 HOURS.[/quote]<br /> <br /> "I AM [b]TOO[/b] IMPATIENT..."<br /> <br /> I don't understand exactly what you're saying, but if you're suggesting that I'm too impatient because I've only waited 3 1/2 hours for a reply...look at the date of my original post again.  I've been waiting since Sunday.<br /> <br /> ordinary1]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3996/12455.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3996/12455.php</link>
				<pubDate><![CDATA[Wed, 15 Dec 2004 21:33:14]]> GMT</pubDate>
				<author><![CDATA[ ordinary1]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ My mistake. Still being impatient. You need to either wait for Auron to see the post or contact him.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3996/12456.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3996/12456.php</link>
				<pubDate><![CDATA[Wed, 15 Dec 2004 22:20:24]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Too tired right now.<br /> <br /> &lt;place holder&gt;]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3996/12457.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3996/12457.php</link>
				<pubDate><![CDATA[Thu, 16 Dec 2004 01:35:48]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ I know the feeling.  However, if you do have any advice later, I would greatly appreciate it.<br /> <br /> ordinary1]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3996/12464.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3996/12464.php</link>
				<pubDate><![CDATA[Thu, 16 Dec 2004 17:04:46]]> GMT</pubDate>
				<author><![CDATA[ ordinary1]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [code]&lt;?php <br /> <br /> /* path */ <br /> $poll_path = &quot;/home/djtrits/public_html/polls/Polls&quot;; <br /> <br /> require $poll_path.&quot;/include/config.inc.php&quot;; <br /> require $poll_path.&quot;/include/$POLLDB&#91;class&#93;&quot;; <br /> require $poll_path.&quot;/include/class_poll.php&quot;; <br /> $CLASS&#91;&quot;db&quot;&#93; = new polldb_sql; <br /> $CLASS&#91;&quot;db&quot;&#93;-&gt;connect&#40;&#41;; <br /> <br /> $php_poll = new poll&#40;&#41;; <br /> <br /> /* the first poll */ <br /> <br /> $php_poll-&gt;set_template_set&#40;&quot;djPollsMain&quot;&#41;; <br /> <br /> if &#40;$HTTP_GET_VARS&#91;'pid'&#93;&#41; &#123;  // Isn't this deprecated? Could try sessions.<br />   $id=$pid; <br /> &#125; <br /> <br /> echo $php_poll-&gt;poll_process&#40;$id&#41;; <br /> <br /> ?&gt;[/code]<br /> <br /> That looks alright.<br /> <br /> Do you get any errors?<br /> <br /> In mainleftwindow.php try the 5 without ' and '. I think integers don't require quotes. Otherwise they may (i think) get interpreted as char's.<br /> <br /> Auron]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3996/12467.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3996/12467.php</link>
				<pubDate><![CDATA[Thu, 16 Dec 2004 21:23:06]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Shouldn't make a difference. Variables in PHP are very variable unless defined. eg<br /> <br /> $blah = 'mary'; makes a string variable with the value [b]mary[/b]<br /> $blah = 1; makes a integer with the value 1.<br /> <br /> but<br /> <br /> $blah = 'mary264'; //makes a string with the value [b]mary264[/b].<br /> $foo = $blah + 3; // makes $foo a integer with the value 267 (264 + 3)<br /> <br /> PHP's funky like that.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3996/12470.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3996/12470.php</link>
				<pubDate><![CDATA[Thu, 16 Dec 2004 22:49:14]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [quote="Auron"]Do you get any errors?<br /> <br /> In mainleftwindow.php try the 5 without ' and '. I think integers don't require quotes. Otherwise they may (i think) get interpreted as char's.<br /> <br /> Auron[/quote]<br /> <br /> No, I do not get any errors.  The integer vs. char issue makes sense, but taking out the quotes made no difference.<br /> <br /> [quote="Carbonize"]Shouldn't make a difference. Variables in PHP are very variable unless defined.[/quote]<br /> <br /> What you're saying appears to be correct.<br /> <br /> ordinary1]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3996/12471.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3996/12471.php</link>
				<pubDate><![CDATA[Fri, 17 Dec 2004 06:07:48]]> GMT</pubDate>
				<author><![CDATA[ ordinary1]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ I still need some help, please.   <img src="https://proxy2.de/forum//images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif" />]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3996/12548.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3996/12548.php</link>
				<pubDate><![CDATA[Mon, 20 Dec 2004 18:22:42]]> GMT</pubDate>
				<author><![CDATA[ ordinary1]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Could try sessions.<br /> <br /> Using $_SESSION (i think) try www.php.net]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3996/12553.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3996/12553.php</link>
				<pubDate><![CDATA[Mon, 20 Dec 2004 20:27:21]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ I'll look into this.  Thanks, Auron!<br /> <br /> ordinary1]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3996/12559.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3996/12559.php</link>
				<pubDate><![CDATA[Mon, 20 Dec 2004 20:55:57]]> GMT</pubDate>
				<author><![CDATA[ ordinary1]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ If only sessions were that simple <img src="https://proxy2.de/forum//images/smilies/2786c5c8e1a8be796fb2f726cca5a0fe.gif" /> lol]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3996/12560.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3996/12560.php</link>
				<pubDate><![CDATA[Mon, 20 Dec 2004 21:17:13]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [quote="Carbonize"]If only sessions were that simple <img src="https://proxy2.de/forum//images/smilies/2786c5c8e1a8be796fb2f726cca5a0fe.gif" /> lol[/quote]<br /> <br /> Do you think that this is not the solution?<br /> <br /> Or do you just think that implementing sessions is easier said than done?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3996/12562.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3996/12562.php</link>
				<pubDate><![CDATA[Mon, 20 Dec 2004 21:43:18]]> GMT</pubDate>
				<author><![CDATA[ ordinary1]]></author>
			</item>
			<item>
				<title>Some Progress &amp;amp; More Trouble</title>
				<description><![CDATA[ I have worked on my code, and it is mostly working.  However, I have another problem:  No one can vote.  Everything appears to work great; it's just that when you try to vote, it never shows up in the results.  Here's the code I have:<br /> <br /> For index.php, I now include mainleftwindow.php in the left table cell and mainrightwindow.php in the right table cell.  I also include the PHP file for a cookie at the beginning of index.php...the cookie works great; in fact, when someone votes, the result of their vote is not stored, but the cookie is properly stored on their computer preventing them from trying again (without removing the cookie, of course).  However, I am using IP checking also, but I assume that is neither here, nor there.<br /> <br /> Here is mainleftwindow.php:<br /> <br /> [code]&lt;?php<br /> <br /> if &#40;$HTTP_GET_VARS&#91;'archives'&#93;==1&#41; &#123;<br /> $_SESSION&#91;'archives'&#93;=1;<br /> &#125;<br /> else &#123;<br /> $_SESSION&#91;'archives'&#93;=0;<br /> &#125;<br /> <br /> if &#40;$_SESSION&#91;'archives'&#93;==1&#41; &#123;<br /> include&#40;&quot;mlw_archiveslist.php&quot;&#41;;<br /> &#125;<br /> else &#123;<br /> include&#40;&quot;mlw_pollslist.php&quot;&#41;;<br /> &#125;<br /> <br /> ?&gt;[/code]<br /> <br /> mlw_archiveslist.php merely contains an informational message.<br /> <br /> mlw_pollslist.php contains a table containing a list of links to polls, their results, and their comments.  Here is how the links are coded:<br /> <br /> [code]&lt;a href='index.php?poll_ident=5' style='text-decoration&#58;none' title='Question?'&gt;Question?&lt;/a&gt;<br /> &lt;a href='index.php?action=results&amp;amp;poll_ident=5' style='text-decoration&#58;none' title='Results'&gt;R&lt;/a&gt;<br /> &lt;a href=\&quot;javascript&#58;void&#40;window.open&#40;'http&#58;//polls.djtritsch.com/Polls/comments.php?action=send&amp;id=5&amp;template_set=default','4','width=230,height=306,toolbar=no,statusbar=no'&#41;&#41;\&quot; style=\&quot;text-decoration&#58;none\&quot; title=\&quot;Comments\&quot;&gt;C&lt;/a&gt;[/code]<br /> <br /> Here is mainrightwindow.php:<br /> <br /> [code]&lt;?php<br /> <br /> if &#40;$HTTP_GET_VARS&#91;'archives'&#93;==1&#41; &#123;<br /> $_SESSION&#91;'archives'&#93;=1;<br /> &#125;<br /> else &#123;<br /> $_SESSION&#91;'archives'&#93;=0;<br /> &#125;<br /> <br /> if &#40;$_SESSION&#91;'archives'&#93;==1&#41; &#123;<br /> include&#40;&quot;mrw_archives.php&quot;&#41;;<br /> &#125;<br /> else &#123;<br /> include&#40;&quot;mrw_polls.php&quot;&#41;;<br /> &#125;<br /> <br /> ?&gt;[/code]<br /> <br /> mrw_archives.php merely contains an informational message.<br /> <br /> mrw_polls.php contains the code to display the polls, and their results.  Here is how it is coded:<br /> <br /> [code]&lt;?php<br /> <br /> if &#40;&#40;$HTTP_GET_VARS&#91;'poll_ident'&#93;&gt;3&#41;==false&#41; &#123;<br /> echo &#40;&quot;&lt;img src='image.jpg' border='0'&gt;&quot;&#41;;<br /> &#125;<br /> else &#123;<br /> <br /> /* path */<br /> $poll_path = &quot;/home/polls&quot;;<br /> <br /> require $poll_path.&quot;/include/config.inc.php&quot;;<br /> require $poll_path.&quot;/include/$POLLDB&#91;class&#93;&quot;;<br /> require $poll_path.&quot;/include/class_poll.php&quot;;<br /> $CLASS&#91;&quot;db&quot;&#93; = new polldb_sql;<br /> $CLASS&#91;&quot;db&quot;&#93;-&gt;connect&#40;&#41;;<br /> <br /> $php_poll = new poll&#40;&#41;;<br /> <br /> /* the first poll */<br /> <br /> $php_poll-&gt;set_template_set&#40;&quot;template&quot;&#41;;<br /> <br /> $poll_id=$HTTP_GET_VARS&#91;'poll_ident'&#93;;<br /> <br /> echo $php_poll-&gt;poll_process&#40;$poll_id&#41;;<br /> <br /> &#125;<br /> <br /> ?&gt;[/code]<br /> <br /> After the last echo before the }, there is an if-else structure employing JavaScript to display information based on $poll_id, but I don't believe this has anything to do with the problem.<br /> <br /> Thanks for any advice, helpful comments, etc.!<br /> <br /> ordinar1]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3996/12665.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3996/12665.php</link>
				<pubDate><![CDATA[Tue, 28 Dec 2004 16:59:52]]> GMT</pubDate>
				<author><![CDATA[ ordinary1]]></author>
			</item>
			<item>
				<title>I figured it out!</title>
				<description><![CDATA[ :D  I figured it out!  This problem was actually very simple.  I should have investigated it just a little more before making my last post.  Here's what I did:<br /> <br /> In the administration panel for Advanced Poll, I went to the Templates.  In the template for Poll View, I added some code to the "form" tag in "display_head".<br /> <br /> It was originally like this:<br /> <br /> [code]&lt;form method=&quot;post&quot; action=&quot;$this-&gt;form_forward&quot;&gt;[/code]<br /> <br /> I added some code:<br /> <br /> [code]&lt;form method=&quot;post&quot; action=&quot;$this-&gt;form_forward?poll_ident=$poll_id&quot;&gt;[/code]<br /> <br /> Thanks!<br /> <br /> ordinary1]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3996/12666.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3996/12666.php</link>
				<pubDate><![CDATA[Tue, 28 Dec 2004 18:00:46]]> GMT</pubDate>
				<author><![CDATA[ ordinary1]]></author>
			</item>
	</channel>
</rss>