CodeIgniter Forums
Form_Input - I dont want the field to list previous entry's - 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: Form_Input - I dont want the field to list previous entry's (/showthread.php?tid=12916)



Form_Input - I dont want the field to list previous entry's - El Forum - 11-04-2008

[eluser]GrootBaas[/eluser]
Hi all,

I really appreciate the help. I am a Newby, so please bear with me.

Is there an option on the Form_input field, so that text field don't remember previous entered data.


Code:
echo form_input(array('name'=>'log_end_odo',
                              'id'=>'end_odo'.$i,
                       'maxlength'=>'20',
                            'size'=>'20',
                       'value'=> $veh_det['END_ODO']),NULL);



Form_Input - I dont want the field to list previous entry's - El Forum - 11-04-2008

[eluser]CIfan1000[/eluser]
Hi,
The data in the text field is set by the value parameter.
Have you tried just setting the value to ""?


Form_Input - I dont want the field to list previous entry's - El Forum - 11-04-2008

[eluser]GrootBaas[/eluser]
Hi,

No, it is a list of all previous entry's.

I think it is the cookies or something that remembers all perevious data that has been entered into that field, and then gives the user a option to choose one of them, or add new one.

My problem is just on that field, for the rest I do actually want to display the cookies.