<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1018403" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1018403</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/making-poll-php#comment-1108079</link>
    <description> &lt;p&gt;Vote1&lt;br /&gt;
Vote2&lt;br /&gt;
Vote3 &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;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$r &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;== &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;v1&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;){ &lt;br /&gt;print &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;works&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;; &lt;br /&gt;} &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 01 May 2002 19:56:26 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1108079 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/making-poll-php#comment-1108073</link>
    <description> &lt;p&gt;Well, I&#039;m not a php expert, but I don&#039;t think your problem has to do with the conditional statement. i think your problem is trying to print to the page after it has been loaded. To put it in simpler javascript terms, when you create, or load a page, you go through this sequence...&lt;/p&gt;
&lt;p&gt;document.open();&lt;br /&gt;
document.write();&lt;br /&gt;
document.close();&lt;/p&gt;
&lt;p&gt;In HTML the closing body tag is issuing a body.close(). Once that command had been issued you can no longer write to a page. I think your conditional is working just fine, but the document has already been closed. I think your form would have an action to call a page that had your conditional check on it that then created another page.&lt;/p&gt;
 </description>
     <pubDate>Wed, 01 May 2002 18:28:52 +0000</pubDate>
 <dc:creator>doublehelix</dc:creator>
 <guid isPermaLink="false">comment 1108073 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/making-poll-php#comment-1108071</link>
    <description> &lt;p&gt;ok i tryied this:&lt;/p&gt;
&lt;p&gt;Vote1&lt;br /&gt;
Vote2&lt;br /&gt;
Vote3&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: #007700&quot;&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;form1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;r&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;value &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;== &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;v1&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;){&lt;br /&gt;print &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;works&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;But it still wont write &quot;works&quot; on the screen &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Why?&lt;/p&gt;
 </description>
     <pubDate>Wed, 01 May 2002 16:04:38 +0000</pubDate>
 <dc:creator>deep</dc:creator>
 <guid isPermaLink="false">comment 1108071 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/making-poll-php#comment-1108069</link>
    <description> &lt;p&gt;The radio button passes a different value depanding on which is selected. For example&lt;/p&gt;
&lt;p&gt;You know which radio button is selected by the value passed, ie:&lt;/p&gt;
&lt;p&gt;if (form1.radio.value == &quot;selction_one&quot;)&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;/p&gt;
&lt;p&gt;etc.&lt;/p&gt;
 </description>
     <pubDate>Wed, 01 May 2002 15:10:41 +0000</pubDate>
 <dc:creator>doublehelix</dc:creator>
 <guid isPermaLink="false">comment 1108069 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
