Jump to content

jonyork

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by jonyork

  1. jonyork

    sendmail

    hey guysalright, my sendmail works, but i only get the values. i would like it so the values would be labled. this is my code<?php$to = "info@yorkdigitalsolutions.com";$subject = "Test mail";$message = $_POST['lastname'] . "\n\r";$message .= $_POST['firstname'] . "\n\r";$message .= $_POST['phone'] . "\n\r";$message .= $_POST['make'] . "\n\r";$message .= $_POST['model'] . "\n\r";$message .= $_POST['year'] . "\n\r";$message .= $_POST['engine'] . "\n\r";$message .= $_POST['drive'] . "\n\r";$message .= $_POST['cab'] . "\n\r";$message .= $_POST['box'] . "\n\r";$message .= $_POST['problem'] . "\n\r";$from = "Request a part";$headers = "From: $from";mail($to,$subject,$message,$headers);echo "<h3><br/> Information Submitted</h3>";?>in the email i receivelastname_valuefirstname_valueand so on. however, i would like it to appear aslastname : lastname_valueFirstname : firstname_valuethanks in advance any help is appcreciated.
  2. jonyork

    Variable issues

    thanks bud, that works just perfectly. one ticker however. on my emaisl the info comes back like thisfirstnamelastnamephoneemaildetailsmy php script looks like this <?php$to = "info@yorkdigitalsolutions.com";$subject = "Test mail";$message = $_POST['firstname'] . "\n\r";$message .= $_POST['lastname'] . "\n\r";$message .= $_POST['phone'] . "\n\r";$message .= $_POST['email'] . "\n\r";$message .= $_POST['details'] . "\n\r";$from = "Maintenance";$headers = "From: $from";mail($to,$subject,$message,$headers);echo "<h3>Information Submitted</h3>";?>id like for there to be a line between email and details if possiblethanks
  3. jonyork

    Variable issues

    hey guysim new at php, and im trying to make a sendmail form. now ive got the sendmail working like this<?php$to = "info@somedomain.com";$subject = "Test mail";$message = "Hello! This is a simple email message.";$from = "Maintenance";$headers = "From: $from";mail($to,$subject,$message,$headers);echo "Mail Sent.";?>now the thing is, my form looks like this <form action="php.php" method="post">First name: <input type="text" name="firstname" /><br />Last name: <input type="text" name="lastname" /><br />Phone Number: <input type="text" name="year" /><br />Email : <input type="text" name="make" /><br />Model: <input type="text" name="model" /><br />Engine: <input type="text" name="engine" /><br /><br />Special Details: <textarea name="problem" cols="75" rows="4"></textarea><br /><br /><input type="submit" /></form>now how do i send all that info with the $message variable? or is there a much easier/better way that im overlooking? any help would be aprreciatedJon York
×
×
  • Create New...