hi, I am using Jquery and cakephp for my application .
I am having a form created in my page using $form->create of cakephp .THe form contains many fields which the user will fill it on and on submitting ,the data is saved by
function submit($id = null)
{
foreach ($_POST as $key => $value):
$this->data['Result']['form_id']=$id;//form id
$this->data['Result']['label']=$key;//this is the fieldname
$this->data['Result']['value']=$value;//fieldvalue
endforeach;
$this->Session->setFlash('Your entry has been submitted.');
}
Now i want to perform validations in the Form like whether all the field values have been filled .If not filled , it must show a alert or a message showing to fill the appropriate field. How to do so..Please suggest me.....
One more suggestion needed which would be better to validate whether on the Clientside or server side..