Topics

Email

This field acts almost the same as simple text input. It just automatically adds email validator that assures correct email address to be entered.

Usage example  

<?php
$form = new \Ip\Form();
$form->addField(new \Ip\Form\Field\Email(
    array(
        'name' => 'email',
        'label' => 'Enter your e-mail',
        'hint' => 'Enter your business e-mail address here.'
    )
));
echo $form->render();
comments powered by Disqus