But as I am going through the JS link, the data will not be submitted.
I am using the form helper right in my add.ctp:
<div class="users form">
<?php echo $this->Form->create('User');?>
<fieldset>
<legend><?php __('Register'); ?></legend>
<?php echo $this->Session->flash('auth'); ?>
<?php
echo $this->Form->input('username');
echo $this->Form->input('password');
echo $this->Form->input('password_confirmation', array('type' =>
'password'));
echo $this->Form->input('email');
?>
<!-- captcha -->
<div id="captchaID">
<?php echo $this->Html->image($this->Html-
>url(array('controller'=>'users', 'action'=>'captcha'),
true), array('style'=>'','vspace'=>2)); ?>
</div>
<?php echo $this->Js->link('Can not read this code? Reload.',
'add',
array('update'=>'captchaID')); ?>
<?php echo $this->Form->input('code'); ?>
<!-- end of captcha -->
</fieldset>
<?php echo $this->Form->end(__('Submit', true));?>
</div>
How do I manually tell the input field to use the data?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php