<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1028113" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1028113</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/isint#comment-1166081</link>
    <description> &lt;p&gt;Ah, I was testing it with $_GET&lt;/p&gt;
 </description>
     <pubDate>Tue, 15 Feb 2005 06:56:24 +0000</pubDate>
 <dc:creator>CptAwesome</dc:creator>
 <guid isPermaLink="false">comment 1166081 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/isint#comment-1166074</link>
    <description> &lt;p&gt;The problem has been solved. Thank you.&lt;/p&gt;
&lt;p&gt;It turned out that passing anything through POST makes it a string, so I had to use is_gnumeric() instead. &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>Tue, 15 Feb 2005 02:52:54 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1166074 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/isint#comment-1166068</link>
    <description> &lt;p&gt;Ah, I think your problem is trim:&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: string trim ( string str [, string charlist] )&lt;/p&gt;
&lt;p&gt;This function returns a string with whitespace stripped from the beginning and end of str.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;When you use trim, it becomes a string, instead of an interger, and will always fail is_int(); (thats my best guess)&lt;/p&gt;
&lt;p&gt;I&#039;d suggest doing just an is_int anyway, if it fails that, then it&#039;s obviously going to fail isset right? so, I owuld simply have:&lt;br /&gt;
!$is_int($_POST[&#039;rows&#039;] ? $_POST[&#039;rows&#039;] = 10;&lt;br /&gt;
that pretty much covers all your bases, but I would set a min value and a max value if you haven&#039;t already.&lt;/p&gt;
 </description>
     <pubDate>Tue, 15 Feb 2005 00:47:57 +0000</pubDate>
 <dc:creator>CptAwesome</dc:creator>
 <guid isPermaLink="false">comment 1166068 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/isint#comment-1165997</link>
    <description> &lt;p&gt;tried printing the values inbetween?&lt;/p&gt;
&lt;p&gt;!isset($_POST[&#039;rows&#039;]) ? $rows = &quot;10&quot; : $rows = trim($_POST[&#039;rows&#039;]);&lt;br /&gt;
echo &quot;rows = $rows&quot;;&lt;br /&gt;
!is_int($_POST[&#039;rows&#039;]) ? $rows = &quot;10&quot; : $rows = trim($_POST[&#039;rows&#039;]);&lt;br /&gt;
echo &quot;rows now = $rows&quot;;&lt;/p&gt;
 </description>
     <pubDate>Mon, 14 Feb 2005 08:14:26 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1165997 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
