Adding image upload to send with php email form ????

how do i add an upload image option at the bottom of this form and get it to send the image with the form txt info to my email ?
Everything works properly I just want the applicant to be able to add a photo and send it with the form.

PHP CODE

<?php $name = $_POST['name']; $email = $_POST['email']; $number = $_POST['number']; $alias = $_POST['alias']; $location = $_POST['location']; $age = $_POST['age']; $height = $_POST['height']; $weight = $_POST['weight']; $hair = $_POST['hair']; $eyes = $_POST['eyes']; $measurements = $_POST['measurements']; $nationality = $_POST['nationality']; $incalls = $_POST['incalls']; $outcalls = $_POST['outcalls']; $travel = $_POST['travel']; $work = $_POST['work']; $description = $_POST['description']; $comments = $_POST['comments']; $formcontent="Name: $name \n Number: $number \n Email: $email \n Alias: $alias \n Location: $location \n Age: $age \n Height: $height \n Weight: $weight \n Hair: $hair \n Eyes: $eyes \n Measurements: $measurements \n Nationality: $nationality \n Incalls: $incalls \n Outcalls: $outcalls \n Travel: $travel \n Availability: $work \n Description: $description \n Comments: $comments "; $recipient = "[email protected]"; $subject = "Employment Application"; $mailheader = "Name: $email \r\n"; mail($recipient, $subject, $formcontent, $mailheader) or die("Error!"); header("Location: http://www.asecretcompanion.com"); ?>

HTML CODE

Employment Application

Name:
Number:
Email:
Alias:
Location:

Age:
Height:
Weight:
Hair:
Eyes:
Measurements:
Nationality:

Incalls: Please Select Yes No
Outcalls: Please Select Yes No
Travel: Please Select Yes No

Days/Hours Available To Work:

Describe Your Personality:

Questions and Comments:


thank you -Jordan

my host ftp client address is ent180.net16.net and i have an uploads folder in there too…

[email protected] email me if you’d like

Simply put, use something like phpMailer. The basic mail() function is not suited for sending attachments or html type mail.

Sponsor our Newsletter | Privacy Policy | Terms of Service