PHP Email

I originally bothered Ahmed about this, but I don’t feel like wasting his time for now. :slight_smile:

There’s 2 files. Order.php which is displayed and process.php which processes the order. The purpose would be sending all the blanks on order.php to an email address.

order.php looks something like this:

<td colspan="2" valign="top"><center><strong><u>Order</u></strong></center><br><br>
 	<form action="process.php" method="post" enctype="text/plain">
 	Name:<br><input type="text" name="name"><br><br>
 	Email Address:<br><input type="text" name="email"><br><br>
 	House # and Street:<br><input type="text" name="street"><br><br>
 	City:<br><input type="text" name="city"><br><br>
 	State:<br><input type="text" name="state"><br><br>
 	Zip Code:<br><input type="text" name="zip"><br><br>
 	Request / Order:<br><textarea rows="10" cols="30" name="order"></textarea><br><br><br>
 	<input type="submit" value="Submit">
 	</form>
 	</td>
 

process.php looks something like this:

<?php
 @extract($_POST);
 $name = stripslashes($name);
 $email = stripslashes($email);
 $street = stripslashes($street);
 $city = stripslashes($city);
 $state = stripslashes($state);
 $zip = stripslashes($zip);
 $order = stripslashes($order);
 mail('maximilianxia@hotmail.com',$name + $email + $street + $city + $state + $zip + $order,"From: $name <$email>", "Subject: Order", $name + $email + $street + $city + $state + $zip + $order);
 header("location:order.php");
 ?>
 <html>...etc
 

When I get the email, it’s just a blank email with the words “From <>” and that’s it. I’m a total newb at this. :frowning: