I I was looking at using a tool called dotmailer within mojoportal.
On creating a signup form through this tool they provide source code to embed into the your site. However there appears to be a conflict with the form submission and the mojoportal page which prevents the form from being submitted.
I would really appreciate if anyone can see where this conflict may be. below is the source code.
(I appreciate Mojoportal has an excellent newsletter system, but would really like to offer this functionality if possible to my sites)
<!-- Start of signup --><script language="javascript"> <!-- function validate_signup(frm) { var emailAddress = frm.Email.value; var errorString = ''; if (emailAddress == '' || emailAddress.indexOf('@') == -1) { errorString = 'Please enter your email address'; }
var isError = false; if (errorString.length > 0) isError = true;
if (isError) alert(errorString); return !isError; }
//--> </script>
<form action="http://smart-news.co.uk/signup.ashx" id="signup" method="post" name="signup" onsubmit="return validate_signup(this)">
<input name="addressbookid" type="hidden" value="508573" /> <!-- UserID - required field, do not remove --><input name="userid" type="hidden" value="49281" />
<!-- ReturnURL - when the user hits submit, they'll get sent here --><input name="ReturnURL" type="hidden" value="http://" />
<!-- Email - the user's email address -->
<table> <tbody> <tr> <td> Email</td>
<td> <input name="Email" type="text" /></td> </tr>
</tbody> </table>
<input name="Submit" type="Submit" value="Subscribe" />
<div id="dMLink" style="color: rgb(0, 0, 0); font-family: Tahoma, Arial, Helvetica; font-size: 9pt; font-style: normal; font-weight: normal;">
<a href="http://www.dotmailer.co.uk" target="_blank">Email marketing</a> powered by dotMailer</div>
<script language="javascript">
<!-- function _dMcA() { var dmForm = document.getElementById("signup"); if (dmForm) { dmForm.action = "http://www.dotmailer.co.uk"; } } var dMAd = document.getElementById("dMLink"); if (dMAd) { if (dMAd.innerHTML.length < 2) { _dMcA(); } } else { _dMcA(); } //-->
</script>
</form> <!-- End of signup -->