Jump to content

wiredweb

Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://www.sitesbye.com

Profile Information

  • Gender
    Not Telling

wiredweb's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. There are only 2 clinics so I wont need to update the emails.
  2. Thank you so much for your help. The script now works!!!!
  3. Thats because $clinic is a drop down menu that goes to this: if($clinic == "Benkelman") $email = "email@twinforksclinic.com"; if($clinic == "Wray") $email = "email2@twinforksclinic.com"; How else can I do it so you can choose which email address it goes to?
  4. I am making a prescription refill form for a local vet clinic and there is a drop down menu to choose where the from will be sent but I never recieve the emails of the completed forms. I have tried several different things but nothing works. The form will work with a single email address though. Here is the code. The form is at [a href=\"http://twinforksclinic.com/prescription.php\" target=\"_blank\"]http://twinforksclinic.com/prescription.php[/a]. <?php $subject = "Prescription Refill for Twin Forks"; $clinic = $_REQUEST['clinic']; $owner = $_REQUEST['owner'] ; $owneremail = $_REQUEST['owneremail']; $pet = $_REQUEST['pet'] ; $weight = $_REQUEST['weight'] ; $phone = $_REQUEST['phone'] ; $qty1 = $_REQUEST["qty1"]; $heartworm = $_REQUEST['heartworm']; $qty2 = $_REQUEST["qty2"]; $fleatick = $_REQUEST['fleatick']; $qty3 = $_REQUEST["qty3"]; $revolution = $_REQUEST['revolution']; $message = $_REQUEST['message']; if($clinic == "Benkelman") $email = "email@twinforksclinic.com"; if($clinic == "Wray") $email = "email2@twinforksclinic.com"; $message = "Sent From: $owner Owner Email: $owneremail Clinic: $clinic Pet's Name: $pet Pet's Weight: $weight Owner's Phone: $phone Heatworm Qty: $qty1 Heartworm: $heartworm Flea/Ticky Qty: $qty2 K9: $fleatick Revolution Qty: $qty3 Revolution: $revolution Speacial Instructions: $message"; mail( $clinic, $subject, $message, "From: $email" ); header( "Location: [a href=\"http://www.twinforksclinic.com/thankyou.php"\" target=\"_blank\"]http://www.twinforksclinic.com/thankyou.php"[/a] ); ?> Thanks for your help in advance!
×
×
  • 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.