Hello,
I did a script for a button company so i need it so it sends the information in the form to their e-mail and one of the parts of the form is an upload box because i will need the pictures to make into buttons, Anyway i dont know how to set up the picture upload in the php it just shows up blank in the e-mail and i also need it to redirect to a paypal cart i made. Could someone please help?
Heres the script and the file upload is called "browse1" also here is the form www.thishostageheartmusic.com/buy25.htm
<?php
$first_name = $HTTP_POST_VARS['first_name'];
$last_name = $HTTP_POST_VARS['last_name'];
$email = $HTTP_POST_VARS['email'];
$aim = $HTTP_POST_VARS['aim'];
$address_one = $HTTP_POST_VARS['address_one'];
$address_two = $HTTP_POST_VARS['address_two'];
$city = $HTTP_POST_VARS['city'];
$state = $HTTP_POST_VARS['state'];
$zip = $HTTP_POST_VARS['zip'];
$country = $HTTP_POST_VARS['country'];
$project_name = $HTTP_POST_VARS['project_name'];
$browse1 = $HTTP_POST_VARS['browse1'];
$first_name = stripslashes($first_name);
$email = stripslashes($email);
$last_name = stripslashes($last_name);
$aim = stripslashes($aim);
$address_one = stripslashes($address_one);
$address_two = stripslashes($address_two);
$city = stripslashes($city);
$state = stripslashes($state);
$zip = stripslashes($zip);
$country = stripslashes($country);
$project_name = stripslashes($project_name);
$browse1 = stripslashes($browse1);
$rec_email = "thedramaline@gmail.com";
$subject = "1 inch Button Order";
$msg_body = "Message from $first_name, $last_name\n";
$msg_body .= "----------------------------------------\n";
$msg_body .= "Contact Information\n";
$msg_body .= "First Name: $first_name\n";
$msg_body .= "Last Name: $last_name\n";
$msg_body .= "Email: $email\n";
$msg_body .= "AIM SN: $aim\n";
$msg_body .= "---------------------------\n";
$msg_body .= "Shipping Information\n";
$msg_body .= "Address Line 1: $address_one\n";
$msg_body .= "Address Line 2: $address_two\n";
$msg_body .= "City: $city\n";
$msg_body .= "State: $state\n";
$msg_body .= "Country: $country\n";
$msg_body .= "---------------------------\n";
$msg_body .= "Project Information\n";
$msg_body .= "Project Name: $project_name\n";
$msg_body .= "Browse1: $browse1\n";
$msg_body .= "----------------------------------------\n";
$msg_body .= "\n\n";
$header_info = "From:Button Order ".$last_name.";
mail($rec_email, $subject, $msg_body, $header_info);
?>
Thanks in advance,
Special Fx