www.webdeveloper.com
Results 1 to 14 of 14

Thread: Form Action

  1. #1
    Join Date
    Apr 2003
    Location
    Nevada
    Posts
    411

    Form Action

    Ok, when I e-mail a form from my site, it comes to my e-mail in-box... BUT it has no writing... how come?!

    Here are the files...

    Feedback.html
    www.crosspoint.org/Feedback.html

    Feedback.php
    www.crosspoint.org/feedback.php

    Registration.htm
    www.crosspoint.org/registration.htm

    Registration.php
    www.crosspoint.org/registration.php

    Please help me!
    WARNING: non-exposure to the Son can cause burning!

  2. #2
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    I tried filling out the feedback form, and from what I could see, it worked fine. Did you get it and was the text filled out?

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  3. #3
    Join Date
    Apr 2003
    Location
    Nevada
    Posts
    411
    No, it was just a blank e-mail...

    But when [J]ona gave me his script it worked just fine... whats up?
    WARNING: non-exposure to the Son can cause burning!

  4. #4
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Post the PHP code you are using. The code that I linked to ( http://forums.webdeveloper.com/showt...9543#post48748 ) works fine...

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  5. #5
    Join Date
    Apr 2003
    Location
    Nevada
    Posts
    411
    This is for the Feedback, not the Registration... registration.php is almost the same thing

    <?PHP

    $subject = "Feedback";
    $headers = "From: Form Mailer";
    $forward = 1;
    $location = "feedbackthankyou.html";
    $addresses = array("webmaster@crosspoint.org","dvaughan@crosspoint.org","lhale@crosspoint.org");

    $date = date ("l, F jS, Y");
    $time = date ("h:i A");

    $msg = "This form was submitted on $date at $time.\n\n";

    foreach ($_POST as $key => $value) {
    $msg .= ucfirst ($key) ." : ". $value . "\n";
    }

    foreach ($addresses as $email) {
    mail($email, $subject, $message, $headers);
    }
    if ($forward == 1) {
    header ("Location:$location");
    }
    else {
    echo ("Thank you for submitting our form.");
    }

    ?>
    WARNING: non-exposure to the Son can cause burning!

  6. #6
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    This line:

    mail($email, $subject, $message, $headers);

    should be:

    mail($email, $subject, $msg, $headers);

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  7. #7
    Join Date
    Apr 2003
    Location
    Nevada
    Posts
    411
    THANK YOU PYRO!

    it works now
    WARNING: non-exposure to the Son can cause burning!

  8. #8
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    You're welcome...

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  9. #9
    Join Date
    Apr 2003
    Location
    Nevada
    Posts
    411
    wait, the registration does the same thing... hold on, I will post the script

    <?PHP

    $subject = "Registration";
    $headers = "From: Form Mailer";
    $forward = 1;
    $location = "feedbackthankyou.html";
    $addresses = array("webmaster@crosspoint.org","dvaughan@crosspoint.org","lhale@crosspoint.org");

    $date = date ("l, F jS, Y");
    $time = date ("h:i A");

    $msg = "This form was submitted on $date at $time.\n\n";

    foreach ($_POST as $key => $value) {
    $msg .= ucfirst ($key) ." : ". $value . "\n";
    }

    foreach ($addresses as $email) {
    mail($email, $subject, $msg, $headers);
    }
    if ($forward == 1) {
    header ("Location:$location");
    }
    else {
    echo ("Thank you for submitting our form.");
    }

    ?>
    WARNING: non-exposure to the Son can cause burning!

  10. #10
    Join Date
    Apr 2003
    Location
    Nevada
    Posts
    411
    there ya go.. i have edited my post
    WARNING: non-exposure to the Son can cause burning!

  11. #11
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    I would use the same script for both... No need to have separate form hanlers, really...

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  12. #12
    Join Date
    Apr 2003
    Location
    Nevada
    Posts
    411
    ok, good point...
    WARNING: non-exposure to the Son can cause burning!

  13. #13
    Join Date
    Apr 2003
    Location
    Nevada
    Posts
    411
    Thanks again!
    WARNING: non-exposure to the Son can cause burning!

  14. #14
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    You bet....

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles