Hey Everyone,
I have just installed a mailing list on my server, that came with my hosting package, it uses PHPlist; link here ; http://www.c-recordz.co.uk/maillist/ i want to intergrate this mailling list into my website, so that users can register for the mailing list on my actual site instead of going to that link above, and totally redirecting them to another website. But i do want to be able to use the admin area from this link ; http://www.c-recordz.co.uk/maillist/admin while still being able to have users register from my actual website,
Now i have tried to intergrate the mailling list myself, but i've got a few problems, first i put in this code into the page;
<script>
var fieldstocheck = new Array();
fieldnames = new Array();
function checkform() {
for (i=0;i<fieldstocheck.length;i++) {
if (eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].value") == "") {
alert("Please enter your "+fieldnames[i]);
eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].focus()");
return false;
}
}
if(! compareEmail())
{
alert("Email addresses you entered do not match");
return false;
}
return true;
}
function addFieldToCheck(value,name) {
fieldstocheck[fieldstocheck.length] = value;
fieldnames[fieldnames.length] = name;
}
function compareEmail()
{
return (document.subscribeform.elements["email"].value == document.subscribeform.elements["emailconfirm"].value);
}
</script><form><table>
<tr><td><div>Email</div></td>
<td><input>
<script>addFieldToCheck("email","Email");</script></td></tr>
<tr><td><div>Confirm email</div></td>
<td><input>
<script>addFieldToCheck("emailconfirm","Confir m email");</script></td></tr><tr><td>
<span><input></span>
<span>I prefer to receive emails in HTML format</span></td></tr>
</table><p>Sorry there are currently no newsletters available</p><p><input></p>
</form><br><br>
<p><a>Unsubscribe</a></p>
Now i can enter data into the mailing list from my page, but as soon as i press submit i get an error (view screenshots below)
Entering email:
http://img525.imageshack.us/img525/6605/entering8rc.jpg
Error message:
http://img300.imageshack.us/img300/8729/error8sp.jpg
I am viewing this from online and not offline, as i thought you probably need to be online to do this. But i don't know why its not working. Also, if you press the unsubscribe button from my website, this happens;
http://img211.imageshack.us/img211/2051/unsub0wb.jpg
I'd really want the user to be able to unsubscribe in my website still, but it links to the mailing list server, for the user to unsubscribe.
If anyone can help me, i will be very greatful.
Thanks in advance!
my msn is: RJDaviesman@hotmail.com if you need to contact me.
Davies