problem to pass the data form form
<?php print $ajax->form(array('action' => '/user/register'),
'post',array('update' => 'registerFormDiv'));?>
<?php echo $html->input('User/nickname', array( 'type' =>
'text')).'<br>'.$error->messageFor('User/nickname'); ?>
<?php echo $html->submit('Register')?>
</form>
The problem is that if I leave the field blank the $this-data is null, I
have to type something to have $this->data['User]['nickname'] not null
I checked also with $this->params['data'] same thing.
my function
var $helpers = array('Javascript','Ajax');
var $components = array ('RequestHandler');
function register()
{
$this->layout = 'ajax';
// if (!empty($this->data['User']))
if (!empty($this->params['data']['User']))
{
--------------- if there is no data in field it does not get in to
this point ------------------
}
}
thanks for help
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---