MvContact Form Mailer / MvContact Form Mailer Overview
If you got this far you know how to install a module and activate it. The only thing left is go to the items tab and activate the MvCONTACT item. Be sure this is the page you are going to use for your contact page. You don't need to activate the item for any other page in your store unless you want to have another contact form of some kind.
Example to make MvCONTACT_firstname and MvCONTACT_email required fields: <input type="hidden" name="MvCONTACT_required" value="firstname,email">
Math verification: <mvt:item name="MvCONTACT" param="math15" /> This page item will display a random addition or subtractioon question that doesn't go past around 15 (or whatever number you want to use). The answer field must be named MvCONTACT_math, as in: <input type="text" name="MvCONTACT_math">
This page item will display a random addition or subtractioon question that doesn't go past around 15 (or whatever number you want to use). The answer field must be named MvCONTACT_math, as in:
<input type="text" name="MvCONTACT_math">
MvCONTACT_fhp: the honeypot method is a nearly foolproof way of filtering out bots.
Page item: <mvt:item name="MvCONTACT" param="honeypot" />
The only other thing you need to do is include the CSS that hides the form field in your CSS file:
.MvCONTACT-fhp { display: none; }
Use these to display thank you and error messages. The example MvCONTACT form on Scot's Miva Scripts uses all of these things and is a good starting point to build a fully functional form.
See the MvCONTACT FAQ pages at Scot's Miva Scripts for a more examples, instructions, and some full featured contact form examples, including examples and explanations on how to use the various success and error variables to customize the experience.
This is a very simple working contact form:
<form method="post" action="&mvt:global:sessionurl;Screen=&mvt:global:screen;&Store_Code=&mvte:store:code;" style="width: 350px;"> <div style="text-align: right;"> First name: <input type="text" name="MvCONTACT_firstname"> <br> Last name: <input type="text" name="MvCONTACT_lastname"> <br> Email address: <input type="text" name="MvCONTACT_email"> <br> </div> Message: <br> <textarea cols="60" rows="5" name="MvCONTACT_message"></textarea> <br> <input type="submit" value="Submit Form"> </form>