Monday, November 30, 2009

ajax->submit and form validation

Hi all,

i am new to cakephp. i have created an application have two
functionality on single form.
i am using cake 1.2.5.

here is my application:

i have customer form. this form contains bellow fields,
1. input box customer name
2. input box customer account no and form for insterting address
3. form for addresses
inputbox address
inputbox city
inputbox state
$ajax->submit()
4. final submit button to save customer form.

now my problem is that i have implemented ajax save functionality but
i m trying to implemented validation on addresses form.

i have created two model form this . customer.php, address.php
i have created only one controller customer_controller.php.into that i
have created one function to handle ajax add,
add_addresses(). and created one final for this evenet.
add_address.ctp.

please tell me what should i do to enable validation address form.

Thanks & Regards

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: