Hey,
I am new to PHP, and i have been reading up on it a little, but I seem to be having some trouble. In a flash website im making i created a form from a template i found. The original template had E-mail, Name, Comment fields, and the PHP code is as follow,
In the flash video, i added a few fields, Street Address, City, State, Zip, Favorite Designers, and i reformated the code to this, but now it doesnt work at all. If anyone can assist me in what i am doing wrong, i would be greatly happy.
I am new to PHP, and i have been reading up on it a little, but I seem to be having some trouble. In a flash website im making i created a form from a template i found. The original template had E-mail, Name, Comment fields, and the PHP code is as follow,
Code:
<? $destination="mjweitz@gmail.com"; $name=$_POST['name']; $email=$_POST['email']; $mes=$_POST['comments']; $subject="Message from $name" ; $mes="Name : $name\n Email: $email\n Comments: $mes\n"; mail($destination,$subject,$mes); ?>
In the flash video, i added a few fields, Street Address, City, State, Zip, Favorite Designers, and i reformated the code to this, but now it doesnt work at all. If anyone can assist me in what i am doing wrong, i would be greatly happy.
Code:
<? $destination="mjweitz@gmail.com"; $name=$_POST['name']; $email=$_POST['email']; $mes=$_POST['street']; $mes=$_POST['city']; $mes=$_POST['state']; $mes=$_POST['zip']; $mes=$_POST['designer']; $mes=$_POST['comments']; $subject="LINK WEBSITE Form, From $name" ; $mes="Name : $name\n Email: $email\n Street Address: $street\n"; City/Town: $city\n"; State: $state\n"; Zip: $zip\n"; Favorite Designers: $designer\n"; Comments: $mes\n"; mail($destination,$subject,$mes); ?>
Comment