Thought you might want to see a way to shorten your PHP posting code and have less typing copy pasting every time you add a new form field, which you are obviously going to be doing big time, I would say..
This offers the flexibility of being able to expand the vars you want to email in one place.
PHP Code:
// Receiving variables
$PostVars=array('radiobutton','company_name','slogan','name','title','address_1'
,'address_2','address_3','phone','cell','fax','vis_email','website','add_info','approval');
//Sending Email to form owner
$pfw_header = "From: $vis_email\n"
. "Reply-To: $vis_email\n";
$pfw_subject = "designer";
$pfw_email_to = "support@rlhanson-online.com";
$pfw_message = "Visitor's IP: {$_SERVER['REMOTE_ADDR']}\n";
while (list($key,$val) = each($PostVars)) {
$pfw_message .= "$key: $val\n";
// use this to create the vars for echoing below
${$key}=addslashes($val);
}
$pfw_message .= "RL Hanson-Online";
@mail($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;
If you want it to automaticaaly send any form var you create, then it is even easier:
PHP Code:
//Sending Email to form owner
$pfw_header = "From: $vis_email\n"
. "Reply-To: $vis_email\n";
$pfw_subject = "designer";
$pfw_email_to = "support@rlhanson-online.com";
$pfw_message = "Visitor's IP: {$_SERVER['REMOTE_ADDR']}\n";
while (list($key,$val) = each($_POST)) {
$pfw_message .= "$key: $val\n";
// use this to create the vars for echoing below
${$key}=addslashes($val);
}
$pfw_message .= "RL Hanson-Online";
@mail($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;
Using the above, you just add the input field to your form and it will automatically get added to the email message.