<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1019959" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1019959</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/how-stop-auto-updating#comment-1122241</link>
    <description> &lt;p&gt;the data wouldn&#039;t be submitted but the form would be open for another vote which is kind of like refreshing.&lt;/p&gt;
&lt;p&gt;Thanks anyway&lt;/p&gt;
 </description>
     <pubDate>Wed, 25 Dec 2002 00:48:34 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1122241 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/how-stop-auto-updating#comment-1122239</link>
    <description> &lt;p&gt;yes, but if you forward them back (to the same page theyre on) the form is reset, and  data will no longer be submitted on subsequent refreshes.&lt;/p&gt;
 </description>
     <pubDate>Wed, 25 Dec 2002 00:36:32 +0000</pubDate>
 <dc:creator>ROB</dc:creator>
 <guid isPermaLink="false">comment 1122239 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/how-stop-auto-updating#comment-1122238</link>
    <description> &lt;p&gt;prevote and postvote are the same page&lt;/p&gt;
 </description>
     <pubDate>Wed, 25 Dec 2002 00:32:58 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1122238 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/how-stop-auto-updating#comment-1122233</link>
    <description> &lt;p&gt;if all you want to do is stop refreshing from re-submitting the form, just forward them back to the page after a vote...&lt;/p&gt;
&lt;p&gt;example:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//when someone votes&lt;br /&gt;//process the vote here&lt;br /&gt;//then forward them&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;header&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Location: yourpage.php\&quot;); exit;&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 25 Dec 2002 00:13:34 +0000</pubDate>
 <dc:creator>ROB</dc:creator>
 <guid isPermaLink="false">comment 1122233 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/how-stop-auto-updating#comment-1122142</link>
    <description> &lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;zollet, told you how to do it......&lt;/p&gt;
&lt;p&gt;example......&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$ip &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$HTTP_SERVER_VARS&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;REMOTE_HOST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$total&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = get_voted(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$poll&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ip&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$db&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;br /&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$total&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; &amp;gt; 0) {&lt;br /&gt;&lt;br /&gt;// redirect to resluts page or give error&lt;br /&gt;&lt;br /&gt;echo \&quot;&amp;lt;td&amp;gt;Already Voted&amp;lt;/td&amp;gt;\&quot;;&lt;br /&gt;&lt;br /&gt;} else {&lt;br /&gt;&lt;br /&gt;// they have not voted, show the vote button&lt;br /&gt;&lt;br /&gt;echo \&quot;&amp;lt;td&amp;gt;INPUT VOTE BUTTON&amp;lt;/td&amp;gt;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// the function............&lt;br /&gt;&lt;br /&gt;function get_voted(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$poll&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ip&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$db&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) {&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mysql_select_db(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$db&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sql&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = \&quot;SELECT count(*)AS total FROM voted WHERE poll_id = &#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$poll&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039; AND ip = &#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ip&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;\&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; if(!&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = mysql_query(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sql&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return(\&quot;ERROR\&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp; if(!&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$myrow&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = mysql_fetch_array(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return(\&quot;0\&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;br /&gt;&amp;nbsp;&amp;nbsp; return(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$myrow&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;total&#039;]);&lt;br /&gt;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;F!&lt;/p&gt;
 </description>
     <pubDate>Sun, 22 Dec 2002 13:28:31 +0000</pubDate>
 <dc:creator>Fataqui</dc:creator>
 <guid isPermaLink="false">comment 1122142 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/how-stop-auto-updating#comment-1121503</link>
    <description> &lt;p&gt;The only fool proof way to have an accurate poll is to have user regisration.&lt;/p&gt;
&lt;p&gt;That&#039;s kinda why you have to register to vote around here too. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 15 Dec 2002 07:49:08 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1121503 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/how-stop-auto-updating#comment-1121499</link>
    <description> &lt;p&gt;Thanks but that has 3 problems,&lt;br /&gt;
1. cookies can be disabled (unaccepted) I started using cookiewall and pick and choose which cookies to accept or deny, adaware has had nothing to do since I got it.&lt;br /&gt;
2. I&#039;m using sessions in the page but I need to empty the session after each page view (and can be over 2000), so voting, going forward one page then back would be same as refreshing as the session wouldn&#039;t be valid.&lt;br /&gt;
3. similar to number 2, also not 100% sure how I could do it, as it would need to be flushed after each visit (browser) so they could return the next day I suppose.&lt;/p&gt;
&lt;p&gt;Sessions and cookies (among others) aren&#039;t my strong points, how can I use then seperate them, without my code looking like the draft of war and peace. at the moment I already have about 6 or 8 session variables registered per display (each page)&lt;/p&gt;
&lt;p&gt;I wish there was something that would easily let me do something like this:&lt;/p&gt;
&lt;p&gt;You can do this as you havent done it before&lt;br /&gt;
If you did this, you can&#039;t do this again&lt;br /&gt;
umm your naughty you tryed to do it again&lt;/p&gt;
 </description>
     <pubDate>Sun, 15 Dec 2002 06:44:30 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1121499 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/how-stop-auto-updating#comment-1121489</link>
    <description> &lt;p&gt;You need to store some info to know who has voted and who has not. The way I see it, you have 3 options...&lt;/p&gt;
&lt;p&gt;1. Set a cookie after the users votes.&lt;br /&gt;
2. Use sessions to do the same thing.&lt;br /&gt;
3. Store the IP in a table in the database.&lt;/p&gt;
 </description>
     <pubDate>Sun, 15 Dec 2002 03:23:00 +0000</pubDate>
 <dc:creator>zollet</dc:creator>
 <guid isPermaLink="false">comment 1121489 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
