Created
November 7, 2008 21:41
-
-
Save guitsaru/22973 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form name="mailing_list"> | |
<input type="text" name="email" id="emailform"> | |
<input type="button" id="go" value="Go!" onclick="subscribe();"> | |
</form> | |
<script language="javascript"> | |
function subscribe() { | |
var xmlhttp = new XMLHttpRequest(); | |
xmlhttp.open('POST', 'http://redlists.com/subscriptions/create', true); | |
xmlhttp.send("<?xml version='1.0' encoding='UTF-8'?><subscription><list_id>16</list_id><email>" + | |
document.mailing_list.email.value + "</email></subscription>"); | |
return true; | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment