Jump to content

drog1998

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

drog1998's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. a dumb question but where do i collect the data from? should it come through in an email?
  2. ok what i meant by nothing was that i'm still getting an email through with just the words. telephone: message: here's the code again which i updated with thorpes corrections <?php $sendTo = "[email protected]"; $subject = "An enquiry"; $headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">\r\n"; $headers .= "Reply-To: " . $_POST["email"] . "\r\n"; $headers .= "Return-path: " . $_POST["email"]; $message = "telephone: ". $_POST['strtelephone'] . "\r\n"; $message .= "message: ". $_POST['strmessage'] . "\r\n"; mail($sendTo, $subject, $message, $headers); ?> any suggestions?
  3. Still nothing with this code. <?php $sendTo = "[email protected]"; $subject = "An enquiry"; $headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">\r\n"; // next include a replyto $headers .= "Reply-To: " . $_POST["email"] . "\r\n"; $headers .= "Return-path: " . $_POST["email"]; $message = "telephone: ". $_POST['strtelephone']"\r\n"; $message .= "message: ". $_POST['strmessage']"\r\n"; mail($sendTo, $subject, $message, $headers); echo "<pre>"; echo "GET:"; print_r($_GET); echo "POST:"; print_r($_POST); echo "</pre>"; ?>
  4. i couldn't get that to work have i got the syntax right? <?php $sendTo = "[email protected]"; $subject = "An enquiry"; $headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">\r\n"; $headers .= "Reply-To: " . $_POST["email"] . "\r\n"; $headers .= "Return-path: " . $_POST["email"]; $message = "telephone: ". $_POST['strtelephone']"\r\n"; $message .= "message: ". $_POST['strmessage']"\r\n"; mail($sendTo, $subject, $message, $headers); ?>
  5. wow 10 years! would you mind reposting the with the new code in so i can see where it goes. I apologise as i'm very new to this. many thanks.
  6. i'm using Flash and each input text box has a variable name attached to it. So telephone and message are 2 of the text fields boxes. Not knowing much about PHP i've pasted the code in from somewhere else in the hope of getting it working.
  7. ok no problem. All i get through are the words... telephone: message: What I want to happen is for my website to send the data from the fields labeled telephone and message in a website. so in a perfect world come thorough looking something like this... telephone: 9999 9999 message: hi drog1998 thanks again
  8. HI there, i'm using a flash and php form. The problem lie in the PHP I only seem to get the field titles (Name and telephone) coming through and not the data they contain. Could somebody tell me what i'm doing wrong? <?php $sendTo = "[email protected]"; $subject = "An enquiry"; $headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">\r\n"; $headers .= "Reply-To: " . $_POST["email"] . "\r\n"; $headers .= "Return-path: " . $_POST["email"]; $message = "telephone: ".$strtelephone."\r\n"; $message .= "message: ".$strmessage."\r\n"; mail($sendTo, $subject, $message, $headers); ?> thank you
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.