<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1034343" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1034343</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/pearhtmlquickfrom-how-do-i-do-group-validation#comment-1199871</link>
    <description> &lt;p&gt;Sorry I haven&#039;t had time to reply sooner, as you can tell a lot has changed around here recently and we&#039;ve all been a little busy! &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;(That&#039;s not &quot;Busy&quot; - the modrater - btw, just busy)&lt;/p&gt;
&lt;p&gt;Anyway, have you solved your problem yet? I had another look through the documentation and had the thought that you could create two groups for validation, but call the function: validate() after creating the first group. If you do this before you even create the second group then it can&#039;t validate them right?&lt;/p&gt;
&lt;p&gt;If the first group validation passes, then your code can go on and create the second group then validate that.&lt;/p&gt;
&lt;p&gt;Does that make any sense? If you solved it in a different way, we&#039;d love to hear how you did it!&lt;/p&gt;
 </description>
     <pubDate>Tue, 16 May 2006 12:08:18 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1199871 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/pearhtmlquickfrom-how-do-i-do-group-validation#comment-1199590</link>
    <description> &lt;p&gt;Yes this is correct if you are referring to the letters as validation rules. There is only two fields, username and password. I have 5 validation rules in total. 4 validation rules should be validated and passed before validation rule 5 is checked. Which I&#039;m guessing you are referring to C and D as.&lt;/p&gt;
 </description>
     <pubDate>Fri, 12 May 2006 18:01:06 +0000</pubDate>
 <dc:creator>The Warden</dc:creator>
 <guid isPermaLink="false">comment 1199590 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/pearhtmlquickfrom-how-do-i-do-group-validation#comment-1199585</link>
    <description> &lt;p&gt;Aha, so let me just clarify:&lt;br /&gt;
You have fields A and B being validated against some criteria and you also have fields C and D being validated against some criteria.&lt;br /&gt;
You want - using this PEAR library&#039;s API - to have A and B validated not only &lt;em&gt;before&lt;/em&gt; C and D, but &lt;em&gt;mutually exclusive&lt;/em&gt; to the validation of C and D?&lt;/p&gt;
&lt;p&gt;So if, A and B fail validation the user should be advised of their failure, and the validator should not even try to check fields C and D, Is that correct?&lt;/p&gt;
&lt;p&gt;Sorry for being pedantic, but knowing exactly what you need is half the battle!&lt;/p&gt;
 </description>
     <pubDate>Fri, 12 May 2006 17:15:28 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1199585 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Re:</title>
    <link>https://www.webmaster-forums.net/webmasters-corner/pearhtmlquickfrom-how-do-i-do-group-validation#comment-1199580</link>
    <description> &lt;p&gt;Yes AddGroupRule() you would think would be a good option. However it still doesn&#039;t provide me with what I require. See how I understand it and how I have it now all rules are validated as a whole each time the form is submitted. The username and password validate against the database shouldn&#039;t occur until all the other validations pass. If this is not done you get error messages that the username is invalid and password is invalid. Which is true but not entirely as the other validation rules have to be checked first and if they pass then check the username and password against the database together and is validated using AddFormRule(), custom validation via a function. See I have these rules presently.&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;$obForm&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addRule&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;szUsername&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;Username required.&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;required&#039;&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;$obForm&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addRule&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;szUsername&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;Username must be 2 to 20 characters in length.&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;rangelength&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, array(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;20&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;$obForm&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addRule&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;szPassword&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;Password required.&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;required&#039;&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;$obForm&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addRule&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;szPassword&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;Password must be 8 to 20 characters in length.&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;rangelength&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, array(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;20&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;Then I have the custom validation against the database to check username and password together.&lt;br /&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;$obForm&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;AddFormRule&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;fnValidateCredentials\&quot;);&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;.&lt;/p&gt;
&lt;p&gt;If anyone else could help as well it would be much appreciated!&lt;/p&gt;
 </description>
     <pubDate>Fri, 12 May 2006 16:31:44 +0000</pubDate>
 <dc:creator>The Warden</dc:creator>
 <guid isPermaLink="false">comment 1199580 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/pearhtmlquickfrom-how-do-i-do-group-validation#comment-1199554</link>
    <description> &lt;p&gt;Hi, I&#039;ve never used this particular PEAR package before, so am taking stabs in the dark really!&lt;/p&gt;
&lt;p&gt;Have you tried creating the elements as a group? As suggested in this part of the documentation: &lt;a href=&quot;http://pear.php.net/manual/en/package.html.html-quickform.html-quickform.addgrouprule.php&quot; class=&quot;bb-url&quot;&gt;http://pear.php.net/manual/en/package.html.html-quickform.html-quickform.addgrouprule.php&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&#039;m not very sure what you require either. Do you need it to validate both username and password then raise an error on each of them that&#039;s wrong? The problem being that it will raise an error on one of them and immediately stop validation and return the error?&lt;/p&gt;
&lt;p&gt;It sounds like a complicated problem, so clarification would be good!&lt;/p&gt;
 </description>
     <pubDate>Fri, 12 May 2006 12:22:49 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1199554 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
