Welcome Guest, Not a member yet? Register   Sign In
form helper [type=email]

(02-26-2021, 10:51 AM)IvanBell Wrote: Both this:

<?= form_input(['name' => 'test', 'type' => 'email']) ?>
and this:
<?= form_input('test', '', '', 'email') ?>
give me the same output:
<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.

Messages In This Thread
form helper [type=email] - by brabus - 02-26-2021, 08:24 AM
RE: form helper [type=email] - by IvanBell - 02-26-2021, 10:51 AM
RE: form helper [type=email] - by brabus - 02-26-2021, 04:25 PM

Theme © iAndrew 2016 - Forum software by © MyBB