Hi Everybody,

I want to know how to show the form with reset or clear and submit button.
reset to clear all form values , submit to submit the form.how do i do in
cakephp, i can able to show the buttons like

<!-- File: /app/views/posts/add.ctp -->

<h1>Add Post</h1>
<?php
echo $form->create('Post');
echo $form->input('title');
echo $form->input('body', array('rows' => '3'));
echo $form->submit('Save Post');
echo $form->button('Reset', array('type'=>'reset'));
echo $form->end();
?>

but how do i assign the clear taks to that reset button

Regards,
Dhileepen

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

Reply via email to