OK, just done all this and inside the email input box it says:
Once everything has been submitted, at the top of the page it shows loads of code:
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.
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: