Hi there,

I just built an AJAX form and it doesn't work at all!

My code:

<div id="messages" style="display: none">
<h3>Recover lost password</h3>
<p>Enter your e-mail address and we will send a reset link to your
email
<?php echo $form->create('User'); ?>
                        <?php echo $form->input('email', array('label' => 
__('Your
Email', true), 'class' => 'text-input')); ?>
                        <div class="clear"><br /></div>

                        <?php echo $ajax->submit(__('Send', true),
                                                                                
array('url'=> array('controller'=>'users', 'action'=>
'login'),
                                                                                
'class'=> 'button',
                                                                                
'update' => 'messages')); ?>

<?php echo $form->end(); ?>
</div> <!-- End #messages -->

The button appears and when I click on it, absolutely nothing happens
while if I type myapp/users/recoverPassword in my browser it of course
calls my controller correctly.

Thanks in advance,

thomas...

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to