I am trying to create an HIDDEN field titled EMPLOYEES_id in Code Igniter. I’ve looked at the docs and have followed them, But the field just isnt going in.
My code is as a follows..
<?php $EMPLOYEES_id = array('EMPLOYEES_id' => $message[0]->EMPLOYEES_id); ?>
<?php $attributes = array('class' => 'well form-horizontal');?>
<?=form_open('messages/create', $attributes, '',$EMPLOYEES_id)?>
The field is not appearing in my form. I’m assuming that is because of an additional array being added to the form_open
Two changes to suggest:
Try performing a full
<?php echoinstead of the<?=shortcut syntax: