Skip to content

Instantly share code, notes, and snippets.

View jackmcpickle's full-sized avatar

Jack McNicol jackmcpickle

View GitHub Profile
@jackmcpickle
jackmcpickle / ajaxsubscribe.html
Last active November 26, 2015 04:27 — forked from jdennes/LICENSE
Subscribing to a Campaign Monitor list using AJAX
<!-- 1. Take your Campaign Monitor subscribe form as generated from within your account: -->
<form action="http://myaccount.createsend.com/t/r/s/aljhk/" method="post" id="cm_form">
<div>
<label for="name">Name:</label><br /><input type="text" name="cm-name" id="name" required /><br />
<label for="aljhk-aljhk">Email:</label><br /><input type="email" name="cm-aljhk-aljhk" id="aljhk-aljhk" required /><br />
<button type="submit" class="button" id="submit_form" disabled>Subscribe</button>
<p id="message"></p>
</div>
</form>