// output, if you wanna get output same below array, you need to use name="Member[verify_code]" // name="Member[email]" in form Array( [Member] => Array ( [verify_code] => 123466 [email] => huuvi168@gmail.com [lang] => zho [password] => 123 [confirm_password] => 123 ) ) // cake php form <?=$this->Form->create('Member', array('role' => 'form')); ?> <fieldset> <?=$this->Form->input('lang', array('type' => 'hidden', 'value' => $lang, 'required'));?> <div class="form-group"> <input type="hidden" name="Member[verify_code]" value="<?= isset($verify_code) && !empty($verify_code) ? $verify_code : ''; ?>" /> </div> <div class="form-group"> <input type="hidden" name="Member[email]" value="<?= isset($email) && !empty($email) ? $email : ''; ?>" /> </div> <div class="form-group"> <?=$this->Form->input('password', array('class' => 'form-control', 'placeholder' => __d('frontend', 'new_password'), 'label' => '', 'required')); ?> </div> </fieldset> <?=$this->Form->end(); ?>

how to pass data cakephp from

Similar Code Examples