Jump to content

xxghostbusterxx

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

xxghostbusterxx's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Correction: Have received two Hello World emails to my work address Have received nothing from hotmail...(even though it was working perfectly well a couple of weeks ago) A big clue I think...
  2. I have tried two email addresses; bot fail to get delivered...
  3. The result was 1 What does this mean? Do I have a server side problem with the mailto function?
  4. Thanks for the reply. However, I am trying to keep the following included to display the thankyou html. /* Results rendered as code */ $theResults = <<<EOD Removed for this post (this is the HTML that will display) EOD; echo "$theResults"; I got this code from http://www.tutvid.com/tutorials/dreamweaver/tutorials/phpFormHandler.php Everything seems to be coded correctly. I am baffled.
  5. Please check the following: THE FORM: <div id="content" style="height:440px; padding-top: 50px;"> <form action="formmail.php" method="post" id="enquiryform"> <fieldset style="width: 300px; padding-top: 8px; margin-bottom: 0px; margin-left:87px; padding-bottom:20px"> <legend>Your contact details</legend> <p style="width:300px;"> <label for="name">Name:</label> <input type="text" name="name" id="name" tabindex="1" /> </p> <p style="width:300px;"> <label for="email">Email:</label> <input type="text" name="email" id="email" tabindex="2" /> </p> <p style="width:300px;"> <label for="telephone">Telephone:</label> <input type="text" name="telephone" id="telephone" tabindex="3" /> </p> </fieldset> <fieldset style="width: 300px; padding-top: 0px; margin-left:87px; padding-bottom:20px"> <legend>Comments</legend> <p style="width:300px;"> <label for="message">Message:</label> <textarea name="message" id="message" rows="10" cols="20" tabindex="4"></textarea> </p> </fieldset> <input class="button" type='submit' value='Submit' style="margin-left:300px;" /> </form> </div> THE PHP SCRIPT: <?php /* Incoming Subject and Email Variables - Fixed */ $emailSubject = 'Message'; $webMaster = '[email protected]'; /* Gathering Data Variables - User Data */ $name = $_POST['name']; $email = $_POST['email']; $telephone = $_POST['telephone']; $message = $_POST['message']; $body = <<<EOD <br><hr><br> Email: $email <br> Name: $name <br> Telephone: $telephone <br> Comments: $message <br> EOD; $headers = "From: $email\r\n"; $headers .= "Content-type: text/html\r\n"; $success = mail($webMaster, $emailSubject, $body, $headers); /* Results rendered as code */ $theResults = <<<EOD Removed for this post (too much data to post) EOD; echo "$theResults" ?> You can see the form at www.beechhillsafety.co.uk. The data gets sent off, the thank you page appears, but nothing arrives at my mail box. This is stranmge as it worked for ages and now does nothing; could it be a problem with the server host? Thanks in advance for any help.
  6. I get the completed form sent to my email account, but it does not contain any information that the user entered - see below: Name: Telephone: Email: Comment: <?php /* Incoming Subject and Email Variables - Fixed */ $emailSubject = 'Message from example; $webMaster = '[email protected]'; /* Gathering Data Variables - User Data */ $nameField = $_POST['email']; $emailField = $_POST['name']; $telephoneField = $_POST['telephone']; $messageField = $_POST['message']; $body = <<<EOD <br><hr><br> Email: $email <br> Name: $name <br> Telephone: $telephone <br> Comments: $comments <br> EOD; $headers = "From: $email\r\n"; $headers .= "Content-type: text/html\r\n"; $success = mail($webMaster, $emailSubject, $body, $headers); /* Results rendered as code */ $theResults = <<<EOD <html> <head> <title>JakesWorks - travel made easy-Homepage</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- body { background-color: #f1f1f1; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; line-height: normal; font-weight: normal; color: #666666; text-decoration: none; } --> </style> </head> <body> <div> <div align="left">Thank you for your interest! Your email will be answered very soon!</div> </div> </body> </html> EOD; echo "$theResults" ?> Any eagle eyes out there who can solve the problem?
×
×
  • 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.