Basic contact form
Plugin Description:
A simple, set_contact_form()
-like, contact form.
Install Instructions:
- Upload the plugin php file to your the
plugins
folder - Create a form with inputs having descriptive
name
attributes in a theme page or component (remember to use_
instead of spaces for names likePhone_number
- Put
<?php custom_contact_form_process(); ?>
at the start of the form - Go to Themes > Basic Contact Settings and fill in the fields
example form:
<form action="<?php get_page_url(); ?>" method="post" class="contact-form">
<?php basic_contact_form_process(); ?>
<fieldset>
<legend>Your message</legend>
<p>
<label for="firstname">Your name<span class="required">*</span></label><br />
<input id="firstname" class="field" type="text" name="Name" value="<?php echo htmlspecialchars(@$_POST['Name']);?>" />
</p>
<p>
<label for="email">Email<span class="required">*</span></label><br />
<input id="email" class="field" type="text" name="Email" value="<?php echo htmlspecialchars(@$_POST['Email']);?>" />
</p>
<p>
<label for="message">Message<span class="required">*</span></label><br />
<textarea id="message" class="field" name="Message" rows="4" cols="40"><?php echo htmlspecialchars(@$_POST['Message']);?></textarea>
</p>
<p>
<input type="submit" value="Send" />
</p>
</fieldset>
</form>
Archived Versions:
These are old versions of this file. Please use with caution as they are probably out of date and no longer supported. ShowHide