Hi there people, i see a lot of people having signup to our newsletter on there websites now and i want to do the same, i have groupmail setup and working fine for the newsletter idea, even the form mail page working fine, but it only currently works if i put the email address in plain text which i dont want to do because of spambots and stuff.
I have used a bit of java script to hide break down the email address and then add the bits up into one variable, but what i dont seem to be able to get right is the bit of code to put in the form box.
<script language="JavaScript">
function readText (form) {
Var_a ="newsletter";
Var_b ="modelpower";
Var_c ="co";
Var_d ="uk";
Var_e = Var_a + "@" + Var_b + "." + Var_c + "." + Var_d
}
</script> <!-- start form code -->
<form action="http://www.modelpower.co.uk/cgi-sys/FormMail.cgi" method="post">
<input type="hidden" name="recipient" value="document.write (Var_e);">
<input type="hidden" value="Subscribe Me" name="subject">
<input type="hidden" value="http://www.modelpower.co.uk/" name="redirect">
<input type="text" name="email">
<input type="submit" value="Subscribe Me"></form> <!-- end form code -->
the result i get is from the form mail page
" Email addresses may not contain (,),>,< or other control chars. "
have browsed a lot of the threads on here but they talk about the script part but not about hpw to build it into form mail.
hope someone can solve my little problem.
I have used a bit of java script to hide break down the email address and then add the bits up into one variable, but what i dont seem to be able to get right is the bit of code to put in the form box.
<script language="JavaScript">
function readText (form) {
Var_a ="newsletter";
Var_b ="modelpower";
Var_c ="co";
Var_d ="uk";
Var_e = Var_a + "@" + Var_b + "." + Var_c + "." + Var_d
}
</script> <!-- start form code -->
<form action="http://www.modelpower.co.uk/cgi-sys/FormMail.cgi" method="post">
<input type="hidden" name="recipient" value="document.write (Var_e);">
<input type="hidden" value="Subscribe Me" name="subject">
<input type="hidden" value="http://www.modelpower.co.uk/" name="redirect">
<input type="text" name="email">
<input type="submit" value="Subscribe Me"></form> <!-- end form code -->
the result i get is from the form mail page
" Email addresses may not contain (,),>,< or other control chars. "
have browsed a lot of the threads on here but they talk about the script part but not about hpw to build it into form mail.
hope someone can solve my little problem.
Comment