(02-26-2021, 10:51 AM)IvanBell Wrote: Both this:
Code:
<?= form_input(['name' => 'test', 'type' => 'email']) ?>
and this:
Code:
<?= form_input('test', '', '', 'email') ?>
give me the same output:
Code:
<input type="email" name="test" value="">
However note, that in the second case type is the forth parameter, so you must specify the three parameters before it.
<?= form_input(['name' => 'test', 'type' => 'email']) ?> - this one worked for me, but the second one did not try because IDE swears on 4th parameter, now i tried after u said that worked for you, anyway it did not work.. Not problem, first worked, that makes sense! Thanks.