I also want to build the next best social media website can you tell me how………….
I just want you to do it for me and not do any of the work myself J
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Andrew Barry
Sent: Saturday, May 24, 2014 6:02 AM
To: cake-php@googlegroups.com
Subject: form data
Hi,
I created a form and a submit button.
After that I want to
1) display certain fields back to another view and that means the posted data is handled by the controller?
I am really finding this hard to get a complete example on this and cakephp book isnt helping as yet.
echo $this->Form->create();
echo $this->Form->input('username'); //text
echo $this->Form->input('password'); //password
echo $this->Form->input('birth_dt',
array('label' => 'Date of birth',
'dateFormat' => 'DMY',
'minYear' => date('Y') - 70,
'maxYear' => date('Y') - 18));
echo $this->Form->checkbox('done');
echo $this->Form->input('field', array(
'options' => array(1, 2, 3, 4, 5),
'empty' => '(choose one)'));
echo $this->Form->end('submit');
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment