Start your own Opt-in Empire with E-mail Submits (Guide + Script)

OK, just done all this and inside the email input box it says:
Code:
<? if($email) { echo

Once everything has been submitted, at the top of the page it shows loads of code:
Code:
";           die;     }  include("connect.php");  //Register values $ip = $_SERVER['REMOTE_ADDR']; $date = date("m-d-y");  $email = mysql_real_escape_string($_POST['email']); $fname = mysql_real_escape_string($_POST['fname']); $lname = mysql_real_escape_string($_POST['lname']); $gender = mysql_real_escape_string($_POST['gender']); $age = mysql_real_escape_string($_POST['age']); $country = mysql_real_escape_string($_POST['country']); $marry = mysql_real_escape_string($_POST['marry']); $edu = mysql_real_escape_string($_POST['edu']); $country = mysql_real_escape_string($_POST['country']);  //indsaet i db mysql_query("INSERT INTO es_users (`id` ,`ip` ,`signupdate` ,`email`  ,`f_name` ,`l_name` ,`gender` ,`age` ,`country` ,`marry` ,`edu`) VALUES  ('', '$ip', '$date', '$email', '$fname', '$lname', '$gender', '$age',  '$country', '$marry', '$edu')");  $id = mysql_insert_id();  //Update user interests foreach($_POST['checkbox'] as $int){ mysql_query("UPDATE es_users SET $int='yes' WHERE id='$id'") or  die(mysql_error());   }  //Kill session session_destroy();   ?>


Something not working somewhere, as all files were correctly copied across and install seemed to work fine.


If anybody can help, Id appreciate it, as had it worked, it looked a good method.
 
Last edited:
Is this thread dead already? It's only about 4 weeks old! :eek:

I thought it would be good to carry the thread on to offer advice/help to each other.

For instance, this PHP code doesn't seem to be connecting to my database correctly:

mysql_connect("localhost", "username", "password") or die(mysql_error());

Username and Password I've obviously changed, but doesn't it need the actual database name in order to connect?
 
Subscibed...wil try implement this later. Thanks
 
seem like there are a lot bugs in this script...

I eventually got it working.

The PHP code in this script uses shortcode which recent versions of PHP on hosting accounts, no longer accept.

If the hosting account allows PHP shortcodes then it'll work. Else, it won't.
 
thanks for sharing the script and lander.. will take in use this now.. :)
 
Back
Top