CodeIgniter Forums
form helper [type=email] - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17)
+--- Thread: form helper [type=email] (/showthread.php?tid=78689)



form helper [type=email] - brabus - 02-26-2021

Hello, i do not want to create many topics (please don't ban, i'm giving this info maybe to improve?), but i want to ask:
1. how i can make input [type=email] with in form helper ? when i try to add to extra ['type' => 'email'], it's ignoring it
2. second thing when i changed password in this forum should not i get message - green alert 'successfully changed'?
3. this login modal looks in my monitor like that (1440x900) ^_^

   


RE: form helper [type=email] - IvanBell - 02-26-2021

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.


RE: form helper [type=email] - brabus - 02-26-2021

(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.