Professional Web Applications Themes

html form with PHP mail function not working - Macromedia Dynamic HTML

I have read the forums, and dont see my answer. I have a form set up in dreamweaver, and a php file on my server. I'm not sure if the php file is my problem or what. Sometimes when I press submit, everything goes through to my email just fine. Other times, it just sends a few of the fields. not all... Im not sure why. I thought it was my php file, and I might be right, but now I'm just so confused. I know this is super easy. You can see the form at joshuataylordesign.com/form.html I attached the ...

Sponsored Links
  1. #1

    Default html form with PHP mail function not working

    I have read the forums, and dont see my answer.
    I have a form set up in dreamweaver, and a php file on my server. I'm not sure
    if the php file is my problem or what. Sometimes when I press submit,
    everything goes through to my email just fine. Other times, it just sends a few
    of the fields. not all... Im not sure why. I thought it was my php file, and I
    might be right, but now I'm just so confused. I know this is super easy.
    You can see the form at joshuataylordesign.com/form.html
    I attached the php code to this message. Any help would be great. Like I said,
    i'm a novice, but Ive seriously been killing myself all day about this-
    thanks

    <?php
    $email = $_POST['email'] ;
    $message = "name: $name \n
    email: $email\n
    message: $message\n
    Monday: $monday\n
    Tuesday: $tuesday\n
    Wednesday: $wednesday\n
    Thursday: $thursday\n
    Friday: $friday\n
    Saturday: $saturday\n
    ";
    mail ("com", "Feedback form results", $message, "From:
    $email") ;
    echo ("your form has been submitted");

    ?>

    Sponsored Links
    joshuataylordesign Guest

  2. #2

    Default Re: html form with PHP mail function not working

    probably should have closing ' ; ' after those line breaks one...

    Try using the \r\n line break to avoid any mess.

    http://us3.php.net/manual/en/function.mail.php

    trust the BIBLE my friend
    znebula Guest

  3. #3

    Default Re: html form with PHP mail function not working

    The code is correct i thinl its better if you try with \n. Tthat might be solving your problem.
    Brian Guest

Similar Threads

  1. Processing e-mail data from html-form
    By alpenman in forum Macromedia ColdFusion
    Replies: 5
    Last Post: October 2nd, 02:01 AM
  2. mail via html form advice req
    By Nick in forum PHP Development
    Replies: 4
    Last Post: February 20th, 10:53 AM
  3. WEB FORM SUBMIT BY E-MAIL OR ATTACH FORM TO E-MAIL
    By GetGoing in forum Web Design
    Replies: 3
    Last Post: October 28th, 02:17 PM
  4. Replies: 0
    Last Post: October 31st, 09:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139