Jump to content

mynahbird

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Female
  • Location
    Big Island of Hawaii

mynahbird's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Oh my goodness ~ Thankyou for all your quick replies! My third form this week so my eyes just cannot see small things like apostrophe missing. Thanks for the second, third, fourth sets of eyes on this. Off to fix my where and get it together with a date picker Mahalo Nui Loa (heartfelt thanks) ~S~
  2. Aloha ~ I am having problems with my code not submitting all variables. The following is excepts from an html form which also includes name address, etc. The Brochure_Number and most all the other variables appear on the emailed form, but .. 1) Date_Purchased, what code needed to get the date printed on the brochure to appear in the email? I get it with php current date code; but am confused as to what code to receive inputed data: Month, Day, Year. Don't really want to do a pop up calendar because of conflicting codes within the page, like JSs Is their a shorter way? 2) Where ~ Does not go through to the emailed form. I don't know why. Can't find the error, Please Help <form method="post" action="contactengine.php"> <input type="text" name="Brochure_Number" value="" id="Brochure_Number" /> <label for="Where">Where or who did you purchase your Brochure from?:</label> <label for="Date_Purchased">Date_Purchased:</label> <input type="text" name="Date_Purchased" value="" id="Date_Purchased" /> <label for="Where">Where or who did you purchase your Brochure from?:</label> <input type="text" name="Where" value="" id="Where" size="50" /> <input type="submit" name="submit" value="Submit" class="submit-button" /> </form> The following is the complete php code on ...... contactengine.php ~ <?php $EmailFrom = "[email protected]"; $EmailTo = "[email protected]"; $Brochure_Number=($_POST['Brochure_Number']); $Date_Purchased=($_POST['Date_Purchased']); $Name=($_POST['Name']); $Street=($_POST['Street']); $City=($_POST['City']); $Zip=($_POST['Zip']); $Phone=($_POST['Phone']); $Cell=($_POST['Cell']); $Email=($_POST['Email']); $Sq_Ft=($_POST['Sq_Ft]); $to=$EmailTo; $subject="Brochure Registration"; $message="Brochure_Number: $Brochure_Number\nDate_Purchased: $Date_Purchased\nFrom: $Name\nStreet: $Street\nCity: $City\nZip: $Zip\nPhone: $Phone\nCell: $Cell\nEmail: $Email\nSq_Ft: $Sq_Ft\nOwn: $Own\nRent: $Rent\nWhere: $Where\n".$message; @mail($to,$subject,$message,$headers); // redirect to success page if (@mail){ print "<meta http-equiv=\"refresh\" content=\"0;URL=http://sunnycarpet.com/thanks.html\">"; } else{ print "<meta http-equiv=\"refresh\" content=\";0;URL=error.htm\">"; } ?> All help is welcome, my brain is crying out for help! Mahalo for your kokua! ~S~ :'(
×
×
  • 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.