Welcome Guest, Not a member yet? Register   Sign In
form helper [type=email]
#1
Information 
(This post was last modified: 02-26-2021, 08:26 AM by brabus.)

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) ^_^

   
Reply
#2

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.
Reply
#3
Heart 

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




Theme © iAndrew 2016 - Forum software by © MyBB