Ok my application is complete, need help with one more thing.
<?php
$firstn= $POST['firstn'];
$age= $POST['age'];
$mail= $POST['mail'];
$life= $POST['life'];
$cname= $POST['cname'];
$cclass= $POST['cclass'];
$cspec= $POST['cspec'];
$armory= $POST['armory'];
$wws= $POST['wws'];
$alts= $POST['alts'];
$history= $POST['history'];
$exp= $POST['exp'];
$role= $POST['role'];
$joinus= $POST['joinus'];
// Contact subject
$subject ="$cname, $cspec $cclass";
// Details
$message =" Application from \n
Name: $firstn \n
Age: $age \n
Email: $mail \n
About: $life \n
Character Name: $cname \n
Character Class: $cclass \n
Character Spec: $cspec \n
Armory Link: $armory \n
WWS Log: $wws \n
Alts: $alts \n
Guild History: $history \n
Experience: $exp \n
Class Role & Knowledge: $role \n
Why choose this application: $joinus \n
";
// Mail of sender
$mail_from = $_POST['mail'];
// From
$header = "from: $name <$mail_from>";
// Enter your email address
$to ='recruitment@smraids.com';
$send_contact = mail($to, $subject, $message, $header);
// Check, if message sent to your email
// display message "We've recived your information"
if($send_contact){
echo "We've recived your contact information";
}
else {
echo "ERROR";
}
?>
The part that is bolded is what I want to change.
When I click submit application, it takes me to a blank page with "We've recived your contact information".
I want to create an external php file that will post this onto my site with the theme and everything instead of it just coming up blank with no parts of my web site included.
Here is the PHP file I created.
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(FILE));
get_lang($module_name);
include("header.php");
$index = 0;
OpenTable();
echo"We have recieved your contact information";
CloseTable();
include("footer.php");