Mail post
Hay jeg kan ikke få min mail del til at sætte navn og brugernavn og password ind og sende men den smider det fint nok i dben. Kan i ikke hjælpe er ved at gå i hundene over dette...<? Db::Conn(open);
if($_POST['first_name'] != ""){ //-- ```````````````````````````````Registration
$first_name = $_POST['first_name'];
$last_name = $_POST['last_name'];
$city = $_POST['city'];
$country = $_POST['country'];
$state_province = $_POST['state_province'];
$date_of_birth = $_POST['date_of_birth'];
$gender = $_POST['gender'];
$email = $_POST['email'];
$subdomain_name = $_POST['subdomain_name'];
$subpass = $_POST['subpass'];
$username = $_POST['customer_number'];
$password = $_POST['password'];
$date = date("d-m-Y");
$time = date("h:i a");
mysql_query("INSERT INTO webhosteu_users (
first_name,
last_name,
city,
country,
state_province,
date_of_birth,
gender,
email,
subdomain_name,
subpass,
username,
password,
date,
time
) VALUES (
'$first_name',
'$last_name',
'$city',
'$country',
'$state_province',
'$date_of_birth',
'$gender',
'$email',
'$subdomain_name',
'$subpass',
'$username',
'$password',
'$date',
'$time'
)") or die (Java::Alert("MySQL Error: ".mysql_error()));
Java::Alert("You will resive a mail with you registration information.");
$to = $_POST['email'];
$subject = 'WEBHOSTEU Registration!';
$message = 'Welcome '.trim($_POST['first_name']).', to WEBHOSTEU Guild creater.<br><br>Use the following information to get started<br>Customer number: '.trim($_POST['username']).'<br>Password: '.trim($_POST['user_password']).'<br><br><center>From WEBHOSTEU Your guild host</center>';
$headers = "From: webhosteu.webhosteu.com\r\n" .
'X-Mailer: PHP/' . phpversion() . "\r\n" .
"MIME-Version: 1.0\r\n" .
"Content-Type: text/html; charset=utf-8\r\n" .
"Content-Transfer-Encoding: 8bit\r\n\r\n";
mail($to, $subject, $message, $headers);
Java::GoToURL("http://www.webhosteu.com");
}elseif($do == ""){ //-- ```````````````````````````````MENU
Java::Alert("To littel information!");
}
Db::Conn(close);
?>
