![]() |
error by just change in one parameter in array of echo form_input - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: error by just change in one parameter in array of echo form_input (/showthread.php?tid=22184) |
error by just change in one parameter in array of echo form_input - El Forum - 09-01-2009 [eluser]Unknown[/eluser] hi, i a new user i had written below code in view :- <? $attributes = array('class' => 'email','name'=>'form1'); echo form_open('javascr/datefinalexternal/display', $attributes); ?> <p> <? $link=base_url().'js/cal/datetimepicker.js'; //echo $link; ?> [removed] hello [removed] </p> <p> <? $link1=base_url().'js/images/cal.gif'; //echo form_input(array('name'=>'end_date','disabled'=>'true','value'=>'1/1/08','id'=>'end_date' ,'size'=>'25')); echo form_input(array('name'=>'end_date','id'=>'end_date' ,'size'=>'25','value'=>'1/1/08',)); ?> <a href="[removed]NewCal('end_date','ddmmyyyy')"><?=img($link1)?></a> <? $js ='onclick="hello()"'; echo form_submit('submit','submit',$js); echo form_close(); ?> The form_input along with disabled=>true,when activated the browser gives error : "Message: Undefined index: end_date",if the disable option is removed it works,kindly guide,but it does't server my purpose. error by just change in one parameter in array of echo form_input - El Forum - 11-04-2009 [eluser]tardyace[/eluser] I found this thread while looking for the same thing, this maybe of use to someone. to disable a form_input use: Code: 'disabled' => 'disabled' Code: <?= form_input(array('name' => 'name', 'id' => 'name', 'maxlength' => '20', 'size' => '20', 'disabled' => 'disabled')) ?> |