• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
form helper [type=email]

#1
Information 
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) ^_^

   
Free Alexey Navalny
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.
Free Alexey Navalny
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.