Integrate function input PHP in HTML input

Hi, I'm trying to integrate a PHP function into an HTML input, because if I remove the HTML input and leave only the PHP function, by not taking the styles the field is reduced in width by half, as you can see in the image. *

2 answers

2

The problem is that the default codeigniter form_input () returns with style="50%" which means that your input is halved. but you can modify that in the array that you pass to the form_input () using the field "style", I'll give you an example.

I assume that $identity is the html of your new field, please show us how you build it and add the css classes as you have them in your HTML input, this should be automatically seen as the inputs that you already handle.