Jump to content

sweetpe

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

sweetpe's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. <?php // $name=$_POST['name']; $email=$_POST['email']; $feedback=$_POST['feedback']; $toaddress = '[email protected]'; // if (stristr($feedback, 'shop')) $toaddress = 'retail@example'.com; else if (stristr($feedback, 'delivery')) $toaddress = '[email protected]'; else if (stristr($feedback, 'bill')) $toaddress = '[email protected]'; // if (!eregi('^[a-zA-Z0-9_\-\.]+@[a-zA-Z0-9_\-]+\.[a-zA-Z0-9_\-\.]+$', $email)) { echo 'That is not a valid email address. Please return to the' .' previous page and try again.'; exit; } $subject = 'Feedback from web site'; $mailcontent = 'Customer name: '.$name."\n" .'Customer email: '.$email."\n" ."Customer comments: \n".$feedback."\n"; $fromaddress = 'From: [email protected]'; mail($toaddress, $subject, $mailcontent, $fromaddress); ?> <html> <head> <title>Bob's Auto Parts - Feedback Submitted</title> </head> <body> <h1>Feedback submitted</h1> <p>Your feedback has been sent.</p> </body> </html>
×
×
  • 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.