www.webdeveloper.com
Results 1 to 3 of 3

Thread: Processer

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

    Processer

    I am having a problem with a script pyro gave me... This form works for only the Feedback on my site... www.crosspoint.org/feedback.html But, when I link my Registration to this script it doesn't work. Why is that?

    <?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, $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!

  2. #2
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Two things to check. Are you linking to the file right? ie. using the right path and fine name in the forms action and are you using the POST method? This script requires that you use POST.

    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
    Was that you who just sent the feedback? and, i thought you were supposed to do this

    <form name="something" action="name_of_php_file.php">
    WARNING: non-exposure to the Son can cause burning!

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