I have a problem in cakephp validation. Below I describe what I want to do:
<select>
<option> Value 1</option>
<option> Value 2</option>
</select>
Input 1 : <input type="text" name="val1" value="" />
Input 2 : <input type="text" name="val2" value="" />
Suppose if I select "Value 1" from dropdown then "Input 1" textbox will be validated and if I select "Value 2" from dropdown then "Input 2" textbox will be validated.
How would I do this in cakephp validation ? Please help me..this is very urgent.plsssss