title: Cakephp:How to validate fields to accept a range of values for a specific entry
body: <p>i have a table which accepts Grade(eg A,B,C...) and the other one accepts Marks(0-100).I want each grade to accept a specified range of marks.Eg A must accept any marks in the range 75-100.</p>
  
  <p>If a user enters a grade,it should only accept a mark in the range of that grade.My two fields are as follows.</p>
  
  <pre><code>$mygrade =array('A'=&gt;'A','B'=&gt;'B','C'=&gt;'C','D'=&gt;'D','E'=&gt;'E','U'=&gt;'U');
          echo $this-&gt;Form-&gt;label('Grade: ');
  
  
  echo $this-&gt;Form-&gt;label('Mark(%): ');
  echo $this-&gt;Form-&gt;input("ApplicantOlevelQualification.mark.$s",array('label'=&gt;''));
  </code></pre>
  
  <p>Please help guys i'm stuck</p>