Contact PHP Mail Form..

Page 2 of 8 FirstFirst 1234 ... LastLast

  1. Posts : 532
    Windows 8.1 64 bit
    Thread Starter
       #11

    Kaktussoft said:
    It actually does sent an email if all fields are entered? You recieve the mail correctly (check subject, sender etc)?
    All my code right here , yet I used this and I got those 3 errors again

    <?php $name = $_POST['name']; $email = $_POST['email']; $message = $_POST['me - Pastebin.com
    Contact PHP Mail Form.. Attached Files
      My Computer


  2. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #12

    Script starts with:

    <?php
    $name = $_POST['name'];
    $email = $_POST['email'];
    $message = $_POST['message'];
    $to = "rh_cs@outlook.com";
    $subject = "New Message";

    replace with:
    <?php
    $name = $_POST['name'];
    $email = $_POST['email'];
    $message = $_POST['message'];
    $to = "rh_cs@outlook.com";
    $subject = "New Message";
    $strValidationMessage = "";

    So just add a line. This initializes viariable strValidationMessage. Otherwise it isn't initialized on first load (when you didn't press submit yet).

    Post results
      My Computer


  3. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #13

    I told you to delete line:
    echo $name.$email.$message;
    !!!!
      My Computer


  4. Posts : 532
    Windows 8.1 64 bit
    Thread Starter
       #14

    Kaktussoft said:
    I told you to delete line:
    echo $name.$email.$message;
    !!!!
    same thing happened man. those 3 errors I will send the code by attachment and you test it.
    Contact PHP Mail Form.. Attached Files
      My Computer


  5. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #15

    And move (not copy):

    $name = $_POST['name'];
    $email = $_POST['email'];
    $message = $_POST['message'];

    To after:
    if (isset($_POST['submit']))
    {


    ----------
    name,email and message haven't been defined yet (on initial load before clicking submit)
    Post results
      My Computer


  6. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #16

    Answer #10 please
      My Computer


  7. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #17

    I have NOTICE errors disabled. Users like me don't see them. They are only logged in apache.log. That's why I didn't notice them. I do display them in log file and during development
      My Computer


  8. Posts : 532
    Windows 8.1 64 bit
    Thread Starter
       #18

    Kaktussoft said:
    Answer #10 please
    Yes it says message has been send but I don't actually see the message when I go to my email account. When I go to my contact link this what happens

    Contact PHP Mail Form..-probelm.png

    After I enter the info , this what happens , but it doesn't send.

    Contact PHP Mail Form..-prob2.png




    <?php if (isset($_POST['submit'])) { $name = $_POST['name']; $email = - Pastebin.com

    The code you send me before worked perfect for you while testing?
      My Computer


  9. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #19

    mail($to, $subject, $message, "From: " .$name);

    must be moved as well:

    if($boolValidateOK == 1)
    {
    mail($to, $subject, $message, "From: " .$name);
    $strValidationMessage = "Email Has been Sent.";
    }
      My Computer


  10. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #20

    Rawad said:
    Kaktussoft said:
    Answer #10 please
    Yes it says message has been send but I don't actually see the message when I go to my email account. When I go to my contact link this what happens

    Contact PHP Mail Form..-probelm.png

    After I enter the info , this what happens , but it doesn't send.

    Contact PHP Mail Form..-prob2.png




    <?php if (isset($_POST['submit'])) { $name = $_POST['name']; $email = - Pastebin.com

    The code you send me before worked perfect for you while testing?
    Yes my tests where fine. All works. still waiting for answer on post #10. Did you read and apply ALL changes I asked you to do?
      My Computer


 
Page 2 of 8 FirstFirst 1234 ... LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 03:39.
Find Us