Validating External Forms
Permalink
Hi,
Anyone got an example of this?
for example in my form
<div class="form-field">
<?php echo $form->label('email', 'Email address');
echo $form->text('email'); ?>
</div>
How would I validate this? Something like
echo $form->text('email', required); ?>
Anyone got an example of this?
for example in my form
<div class="form-field">
<?php echo $form->label('email', 'Email address');
echo $form->text('email'); ?>
</div>
How would I validate this? Something like
echo $form->text('email', required); ?>
then in your controller you would have the action_do_contact function where you could do your validation
and then back on your form page you could handle the errors with something like this