<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1039177" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1039177</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/error-when-characters-are-entered-user#comment-1222473</link>
    <description> &lt;p&gt;Nrrrgh, can&#039;t remember back far enough....&lt;/p&gt;
&lt;p&gt;My knowledge of ASP is getting dimmer and dimmer (it&#039;s a good thing Drew posts all these ASP questions). It&#039;s something like HtmlEncode, have you got an ASP reference where you can do a search for that? Also when I did ASP it was heavily tied into VB, so that might be a VB method! &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;
&lt;p&gt;There&#039;s got to be something like that though.&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;Drew wrote:&lt;/strong&gt; How can I allow users to enter these and other symbols into a form which gets stored in the database without getting errors?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Moreover, how do you stop some sneaky 1337 H4xX0r script kiddie using those symbols to inject queries into your database! Is ASP strongly typed (I&#039;ve forgotten)? If not you&#039;d better make sure that when inserting a number into the database that it actually is a number, if ASP uses variable declarations like: [incode]Dim MyVar As Int[/incode] then you should be ok, but if it&#039;s throwing variants around (ala [incode]Dim MyVar[/incode] or [incode]Dim MyVar As Variant[/incode]) then you&#039;d better start using the type checking functions ([incode]is_num[/incode] for instance).&lt;/p&gt;
&lt;p&gt;Breaking stuff is good, if you break it now it means someone else doesn&#039;t break it in future. &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>Wed, 01 Aug 2007 14:21:50 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1222473 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/error-when-characters-are-entered-user#comment-1222471</link>
    <description> &lt;p&gt;I&#039;m using asp, but I&#039;m still interested in what you know about doing it in PHP &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;
&lt;p&gt;Drew,&lt;/p&gt;
 </description>
     <pubDate>Wed, 01 Aug 2007 13:56:52 +0000</pubDate>
 <dc:creator>drew22299</dc:creator>
 <guid isPermaLink="false">comment 1222471 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/error-when-characters-are-entered-user#comment-1222439</link>
    <description> &lt;p&gt;(p.s. that last post was # 1337 ... hahahah)&lt;/p&gt;
 </description>
     <pubDate>Tue, 31 Jul 2007 20:03:26 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1222439 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/error-when-characters-are-entered-user#comment-1222438</link>
    <description> &lt;p&gt;You need to allow for things like this by &quot;trying to break it&quot;... which you have, and that&#039;s a good thing.&lt;/p&gt;
&lt;p&gt;How to fix it?  Well you could replace the @ and other such symbols with their HTML code equivalent... are you using PHP?  There&#039;s a function called &quot;html_entities_encode&quot; ... check that out.&lt;/p&gt;
&lt;p&gt;As for the SQL... that&#039;s actually a good question, and I&#039;m not sure.  I think it probably has to do with how your database queries are structured.  If you are filtering them, then probably not.  Otherwise... maybe?&lt;/p&gt;
&lt;p&gt;Let me know if you&#039;re using PHP, because then I can give you some more specific help.&lt;/p&gt;
 </description>
     <pubDate>Tue, 31 Jul 2007 20:02:51 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1222438 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
