Jump to content

What is the code for stopping second subscription ?


moneytree

Recommended Posts

Hi,

 

May I know what is the code for stopping peoples from second subscribe to my opt-in for the same newsletter ?

 

The follwoing is my webform code for your review and advice :

 

<script language="javascript">

 

function verify()

{

var first = document.myform.realname.value;

var last = document.myform.lastname.value;

var email = document.myform.email.value;

 

var errors1 = "";

var errors2 = "";

var errors3 = "";

var message="Please complete the following field(s): \n";

 

if (first.length == "0") {

errors1="First name\n";

}

if (last.length == "0") {

errors2="Last name\n";

}

if (email.length == "0") {

errors3="email address\n";

}

if (errors1.length >= "1" || errors2.length >= "1" || errors3.length >= "1") {

alert(message + "\n\n" + errors1 + errors2 + errors3);

}

else {

document.myform.submit();

}

}

</script>

 

<div id="formbox">

<h3>Free E-book for today ! </h3>

<p>" SEO MADE EASY " (Worth $89)</p>

<center><img src="http://moneymakeyourich.com/images/seo_opt_made_easy_small.jpg"></center>

<form name="myform" METHOD="post" ACTION="http://moneymakeyourich.com/cgi-bin/formmail.pl">

<input type=hidden name="recipient" value="moneytree@moneymakeyourich.com">

<input type=hidden name="subject" value="Your Subject">

First Name :

<input type=text name="realname" size="20">

 

 

Last Name :

<input type=text name="lastname" size="20">

 

 

Email            :

<input type=text name="email" size="20">

 

 

<center><input type="button" value="Yes,I want it !" onclick="verify()"/></center>

 

</form>

 

Thank you.

 

Best regards

Manicui

     

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.