Skip to content

Instantly share code, notes, and snippets.

@brettbartylla
Created September 6, 2017 02:08
Show Gist options
  • Save brettbartylla/9f83449beddd36cfa5d4d802c8ab097d to your computer and use it in GitHub Desktop.
Save brettbartylla/9f83449beddd36cfa5d4d802c8ab097d to your computer and use it in GitHub Desktop.
Form that goes with the mailer.php and ajaxSubmit.js files
<form id="ajax-contact" class="form-horizonta" method="post" action="mailer.php">
<div class="field form-group">
<label for="name" class="control-label">Name:</label>
<input class="form-control" type="text" id="name" name="name">
</div>
<div class="field form-group">
<label for="email" class="control-label">Email:</label>
<input class="form-control" type="email" id="email" name="email">
</div>
<div class="field form-group">
<label for="message" class="control-label">Message:</label>
<textarea class="form-control" id="message" name="message" rows="4"></textarea>
</div>
<div id="form-messages"></div>
<div class="field">
<button type="submit" class="btn btn-default">Send</button>
</div>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment