Go to page content

email

Check if the content of the input field is an e-mail address.

For example:

<input type="text" id="email" name="email" value="" />
{% validate id="email" type={email} %}

Arguments:

ArgumentDescriptionExample
failure_messageMessage to show when the entered value is not an e-mail address. Defaults to "Incorrect E-mail"failure_message="Please enter your e-mail address."

This page is part of the Zotonic documentation, which is licensed under the Apache License 2.0.