Hi all

I tried to make a ajax login form which is loaded inside a JQuery Thickbox.
but the problem is after entering correct username and password  the
Thickbox returns to the homepage!!! how can I close the Thickbox and
redirect the parent to the homepage?????
Any idea?????

here is my code:

<div id = 'login'>
<?php echo $session->flash(); 
$session->flash('auth');?>
</div>
<?php
echo $ajax->form(array('type' => 'post',
'class'=>'account',
    'options' => array(
        'model'=>'User',
        'update'=>'login',
        'url' => array(
            'controller' => 'users',
            'action' => 'login'
        ),
    )
));  
<div class="anket"> Kullanici Adi:
  <p><?php echo $form->text('User.username', array('type'=>'text',
'label'=>false));?> </p>
  
</div>
  
<div class="anket">Sifre
  <p><?php echo $form->password('User.password', array( 'label'=>false));?>
</p>
  <input type="checkbox" name="remember_me"  class="remember"/>
  Beni Hatirla
   #TB_inline?height=400&width=630&inlineId=forgotPass Sifrenizi mi
unuttunuz? 
</div>
  
<div class="sozlesme" style="margin-left:116px;">
echo $form->submit('giris-yap-button.gif', array( 'class'=>'submit'));?> 
</div>
<?php echo $form->end(); ?> 
</div>

-- 
View this message in context: 
http://old.nabble.com/Auth-login-redirect-after-submit-a-form-in-a-Thickbox-tp28567085p28567085.html
Sent from the CakePHP mailing list archive at Nabble.com.

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