If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1
  1. #1
    Junior Member
    Join Date
    Jun 2012
    Member #
    I have created this php file so that users can apply online. There is two areas thou where I need them to upload a picture. I listed those values as 'headshot' and 'bodyshot'. What else do I need add to this php so that the files will attach properly and send?

    I am new to learning this and would really like clear insight on what to add. Thank you for your time and help!

    Current code:

    PHP Code:
    /* Email Variables */
    $emailSubject 'employment'/*Make sure this matches the name of your file*/
    $webMaster '';
    /* Data Variables */
    $firstname $_POST['firstname'];
    $lastname $_POST['lastname'];
    $address $_POST['adress'];
    $city $_POST['city'];
    $zipcode $_POST['zipcode'];
    $phone $_POST['phone'];
    $email $_POST['email'];
    $howdidyouhear $_POST['howdidyouhear'];
    $age $_POST['age'];
    $uscitizen $_POST['uscitizen'];
    $driverlicense $_POST['driverlicense'];
    $transportation $_POST['transportation'];
    $adultservice $_POST['adultservice'];
    $bodycomfort $_POST['bodycomfort'];
    $headshot $_POST['headshot'];
    $bodyshot $_POST['bodyshot'];
    $startdate $_POST['startdate'];
    $hours $_POST['hours'];
    $weekdays $_POST['weekdays'];
    $aboutyou $_POST['aboutyou'];
    $whywork $_POST['whywork'];
    $questions $_POST['questions'];

    $body = <<<EOD
    First Name: 
    $firstname <br>
    Last Name: 
    $lastname <br>
    $address <br>
    $city <br>
    Zip Code: 
    $zipcode <br>
    $phone <br>
    $email <br>
    How did you hear about us: 
    $howdidyouhear <br>
    $age <br>
    Are you eligible to work in the US: 
    $uscitizen <br>
    Do you have a vaild Drivers License: 
    $driverlicense <br>
    Do you have reliable transportation: 
    $transportation <br>
    Have you worked in an adult/exotic service before: 
    $adultservice <br>
    On a scale how comfortable are you with your body: 
    $bodycomfort <br>
    $headshot <br>
    $bodyshot <br>
    When could you start: 
    $startdate <br>
    Total hours available per week: 
    $hours <br>
    What days are you available: 
    $weekdays <br>
    What you do now: 
    $aboutyou <br>
    Why you want to work for Cleaning Done Right: 
    $whywork <br>
    Questions for us: 
    $questions <br>
    $headers "From: $email\r\n";
    $headers .= "Content-type: text/html\r\n";
    $success mail($webMaster$emailSubject$body,

    /* Results rendered as HTML */
    $theResults = <<<EOD
    <title>sent message</title>
    <meta http-equiv="refresh" content="3;URL=">
    <style type="text/css">
    body {
    background-color: #444; /* You can edit this CSS to match your website*/
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-style: normal;
    line-height: normal;
    font-weight: normal;
    color: #fec001;
    text-decoration: none;
    padding-top: 200px;
    margin-left: 150px;
    width: 800px;
    <div align="center">Thank you. Your application has been successfully sent to Cleaning Done Right.</div>
    This is just the first initial build of the site, we will use databases later on in the next 2 months, but for now I need help with the current code to produce the upload for the files.

    Can anyone please assist me with what I am asking for?

    Thank you again for your time in advance.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search tags for this page

attaching multiple files to an email with php


attaching multiple images php mail


how to attach multiple photo files to email using php


multiple images attch in php

Click on a term to search for related topics.
All times are GMT -6. The time now is 07:21 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: