<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1019683" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1019683</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-variable-javascript-function#comment-1118534</link>
    <description> &lt;p&gt;Agreed, let&#039;s see how you&#039;re outputing the results.&lt;/p&gt;
 </description>
     <pubDate>Thu, 14 Nov 2002 15:30:04 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1118534 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-variable-javascript-function#comment-1118484</link>
    <description> &lt;p&gt;Check the output HTML source. If the values don&#039;t show up in the resulting code, then the problem lies with the javascript, rather than the PHP. If not, then we&#039;ll have to rethink the PHP. &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>Thu, 14 Nov 2002 06:43:40 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1118484 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-variable-javascript-function#comment-1118483</link>
    <description> &lt;p&gt;no errors...my javascript is a countdown timer. i actually have to set the year, month, day, hour, minutes and second in the function but i intend to pass in the variables of yr, month..etc from php to javascript.&lt;/p&gt;
&lt;p&gt;i know it&#039;s not working cos it display&lt;br /&gt;
NaN days, NaN hours, NaN minutes, and NaN seconds left until to buy this product!!&lt;br /&gt;
instead of the days, hour and minutes...&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;?&lt;br /&gt;$year = &amp;quot;2002&amp;quot;;&lt;br /&gt;		$month = &amp;quot;11&amp;quot;;&lt;br /&gt;		$day = &amp;quot;15&amp;quot;;&lt;br /&gt;		?&amp;gt;&lt;br /&gt;		&lt;br /&gt;		&amp;amp;lt;script type=&amp;quot;text/javaScript&amp;quot;&amp;amp;gt;&lt;br /&gt;&lt;br /&gt;		var theyear=&amp;#039;&amp;lt;? echo $year; ?&amp;gt;&amp;#039;&lt;br /&gt;		var themonth=&amp;#039;&amp;lt;? echo $month; ?&amp;gt;&amp;#039;&lt;br /&gt;		var theday=&amp;#039;&amp;lt;? echo $day; ?&amp;gt;&amp;#039;&lt;br /&gt;		var thehour=&amp;#039;00&amp;#039;&lt;br /&gt;		var themin=&amp;#039;00&amp;#039;&lt;br /&gt;&lt;br /&gt;				&lt;br /&gt;		function setcountdown(theyear,themonth,theday,thehour,themin,thesec){&lt;br /&gt;		yr=theyear;mo=themonth;da=theday;hr=thehour;min=themin;sec=thesec&lt;br /&gt;		}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;setcountdown(theyear,themonth,theday,thehour,themin)&lt;br /&gt;&amp;amp;lt;/script&amp;amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Thu, 14 Nov 2002 06:31:36 +0000</pubDate>
 <dc:creator>joyce</dc:creator>
 <guid isPermaLink="false">comment 1118483 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-variable-javascript-function#comment-1118482</link>
    <description> &lt;p&gt;Do you get an error message? How are you able to tell that the variable is not being passed? &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;
&lt;p&gt;If you look at the links Suzanne posted, you will see that her code works. Is it similar to what you have?&lt;/p&gt;
 </description>
     <pubDate>Thu, 14 Nov 2002 06:20:00 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1118482 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-variable-javascript-function#comment-1118481</link>
    <description> &lt;p&gt;hi, thanks for the reply. i tried all tat u suggest but i still can&#039;t get the php variable passed over....&lt;/p&gt;
 </description>
     <pubDate>Thu, 14 Nov 2002 06:09:55 +0000</pubDate>
 <dc:creator>joyce</dc:creator>
 <guid isPermaLink="false">comment 1118481 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-variable-javascript-function#comment-1118470</link>
    <description> &lt;p&gt;Heh, in the wrong places, lol, those are damned hard to find, too. &lt;/p&gt;
&lt;p&gt;I&#039;ve just had some weird errors where lines that should be terminated seem to be terminating the script. It&#039;s probably me, though. I&#039;ll go over what I&#039;m doing more carefully next time and see if I can see a particular pattern.&lt;/p&gt;
&lt;p&gt;Zollet, I&#039;ve heard that, but I&#039;ve always been afraid to go perl on php (obfuscating the code instead of being explicit). Good reminder, though, thank you.&lt;/p&gt;
 </description>
     <pubDate>Thu, 14 Nov 2002 04:30:02 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1118470 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-variable-javascript-function#comment-1118469</link>
    <description> &lt;p&gt;I didn&#039;t know you could write javascript without ending the lines. Maybe that is something they&#039;ve added to make it easier for people that are new to javascript as god know how many times I&#039;ve seen people forgetting them.&lt;/p&gt;
&lt;p&gt;I agree with Abhi, even though it might work without the semi-colon, it _should_ be there.&lt;/p&gt;
 </description>
     <pubDate>Thu, 14 Nov 2002 04:27:48 +0000</pubDate>
 <dc:creator>zollet</dc:creator>
 <guid isPermaLink="false">comment 1118469 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-variable-javascript-function#comment-1118467</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: I find that the semi-colon on the end of JavaScript lines causes more problems than not having it -- is your experience different, Abhi? I haven&#039;t written it a lot recently, so I&#039;m kind of rusty on the particulars.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I don&#039;t think it matters much. I just think it&#039;s politically incorrect. I cringe at the sight of unfinished lines, mixed quotes, inconsistent tabbing, etc. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/tongue.png&quot; title=&quot;Sticking out tongue&quot; alt=&quot;Sticking out tongue&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;What problems have you had with semi-colons? I&#039;ve never had any difficulties, except for when I use it in the wrong places (eg: &lt;em&gt;function bob()&lt;strong&gt;;&lt;/strong&gt; {}&lt;/em&gt;),&lt;/p&gt;
 </description>
     <pubDate>Thu, 14 Nov 2002 04:23:57 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1118467 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Just a side note...</title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-variable-javascript-function#comment-1118466</link>
    <description> &lt;p&gt;Instead of &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;echo &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$year&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&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; you can simply use &amp;lt;?= $year ?&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;?= means &amp;lt;?php echo&lt;/p&gt;
 </description>
     <pubDate>Thu, 14 Nov 2002 04:22:33 +0000</pubDate>
 <dc:creator>zollet</dc:creator>
 <guid isPermaLink="false">comment 1118466 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-variable-javascript-function#comment-1118464</link>
    <description> &lt;p&gt;I find that the semi-colon on the end of JavaScript lines causes more problems than not having it -- is your experience different, Abhi? I haven&#039;t written it a lot recently, so I&#039;m kind of rusty on the particulars.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://secrets.synapticimpulse.com/crap.php&quot; class=&quot;bb-url&quot;&gt;http://secrets.synapticimpulse.com/crap.php&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://secrets.synapticimpulse.com/crap.phps&quot; class=&quot;bb-url&quot;&gt;http://secrets.synapticimpulse.com/crap.phps&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;My test page and source.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt; Suzanne&lt;/p&gt;
 </description>
     <pubDate>Thu, 14 Nov 2002 04:09:25 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1118464 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
