<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1034272" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1034272</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-problems#comment-1199058</link>
    <description> &lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;string = &amp;#039;input &amp;quot;string&amp;quot; yeah&amp;#039;;&lt;br /&gt;string = string.replace(/[&amp;quot;&amp;#039;]/,&amp;#039;&amp;#039;);&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;That will replace all &quot; and &#039; with nothing (ie killing them) if you run it as an onkeypress or something to that effect on a textarea/input box, that would eliminate the problem.&lt;/p&gt;
 </description>
     <pubDate>Sat, 06 May 2006 05:10:53 +0000</pubDate>
 <dc:creator>CptAwesome</dc:creator>
 <guid isPermaLink="false">comment 1199058 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-problems#comment-1199056</link>
    <description> &lt;p&gt;Well, when someone creates a new listing on the site, the title of the listing is also the pagetitle. If the pagetitle has a &#039; or &quot; in it, I get an error. I am going to forget working on that PHP and I am now focusing on getting a javascript that will prevent someone from using &#039; or &quot; in the pagetitle. Thanks for all the help CptAwesome and Renegade. &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;&lt;/p&gt;
 </description>
     <pubDate>Sat, 06 May 2006 05:06:30 +0000</pubDate>
 <dc:creator>teammatt3</dc:creator>
 <guid isPermaLink="false">comment 1199056 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-problems#comment-1199054</link>
    <description> &lt;p&gt;What are you trying to do exactly?&lt;/p&gt;
 </description>
     <pubDate>Sat, 06 May 2006 04:59:23 +0000</pubDate>
 <dc:creator>CptAwesome</dc:creator>
 <guid isPermaLink="false">comment 1199054 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-problems#comment-1199037</link>
    <description> &lt;p&gt;It is by the forum&#039;s template engine, which does not execute the PHP. So what you&#039;re saying is I have to find the source of where the {PAGETITLE} is being built in PHP and go from there? &lt;/p&gt;
&lt;p&gt;Is there a JavaScript that can prevent people from typing &#039; or &quot;, or is that impossible with JavaScript?&lt;/p&gt;
 </description>
     <pubDate>Sat, 06 May 2006 01:30:06 +0000</pubDate>
 <dc:creator>teammatt3</dc:creator>
 <guid isPermaLink="false">comment 1199037 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-problems#comment-1199032</link>
    <description> &lt;p&gt;How is wrapper.tpl being brought into the script? Is it by the forum&#039;s template engine which does not execute php? I went to the link you provided and the php code isn&#039;t being executed, the problem isn&#039;t the code, it&#039;s how you are trying to utilize it. Since you&#039;re pulling it from a .tpl file, it&#039;s being dumped in AFTER the php has been executed, or it&#039;s being dumped in as A STRING not as php executable code.&lt;/p&gt;
 </description>
     <pubDate>Fri, 05 May 2006 23:01:49 +0000</pubDate>
 <dc:creator>CptAwesome</dc:creator>
 <guid isPermaLink="false">comment 1199032 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-problems#comment-1199031</link>
    <description> &lt;p&gt;That doesn&#039;t work either Renegade. I think the problem lies here&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: #FF8000&quot;&gt;// if string length is zero, or does not exist&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;strlen&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$bg&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) == &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;0&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) { &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$bg &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;{PAGETITLE}&quot;&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; &lt;/p&gt;
&lt;p&gt;because if {PAGETITLE} has a &quot; in it that messes the PHP up, because there are already quote there. I could change it to &#039; instead of &quot; but then if the pagetitle had a &#039; in it, the same problem would occur.&lt;/p&gt;
&lt;p&gt;Capt. I am not sure what you mean, you can take a look at the whole code here &lt;a href=&quot;http://tidget.com/templates/default/wrapper.tpl&quot; class=&quot;bb-url&quot;&gt;http://tidget.com/templates/default/wrapper.tpl&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 05 May 2006 22:13:31 +0000</pubDate>
 <dc:creator>teammatt3</dc:creator>
 <guid isPermaLink="false">comment 1199031 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-problems#comment-1199020</link>
    <description> &lt;p&gt;Is this a header you are including or a template that is being brought in by the forum. If it is not being included, the code will not be executed.&lt;/p&gt;
 </description>
     <pubDate>Fri, 05 May 2006 14:38:46 +0000</pubDate>
 <dc:creator>CptAwesome</dc:creator>
 <guid isPermaLink="false">comment 1199020 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-problems#comment-1198995</link>
    <description> &lt;p&gt;Is there any reason why you would have &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;echo &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addslashes&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;$bg&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;); &lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Try using just&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;echo &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addslashes&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$bg&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;&lt;/p&gt;
&lt;p&gt;and see if that helps.&lt;/p&gt;
 </description>
     <pubDate>Fri, 05 May 2006 04:37:07 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1198995 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
