Results 1 to 6 of 6
  1. #1

    sweeeeeet...need a script:

    I need a form to e-mail script. I know there are billions out there. but I need one that is very easy to configure and just takes form info and e-mails it. That's all...I don't want all the other crap every other script does...this is all I want...oh and I want it to redirect to an html page once submitted. Anyone got an easy one?

  2. #2
    Join Date
    Aug 2002
    Location
    Davis, CA
    Posts
    168
    PHP makes this really simple.. Create a form that posts the info to your php file.. All the form fields are now variables. Do simple email validity checking (optional) then push it into the mail() function (http://www.php.net/manual/en/ref.mail.php). Then just put your thanks page after the script.

  3. #3
    Join Date
    Aug 2002
    Location
    Chandler, Arizona
    Posts
    2,564
    this is a pretty dumb way to do it but id just mail yourself the $QUERY_STRING it would give you all the variables posted to that page. hth
    -Robert Norton
    www.SophMedia.com

  4. #4
    Join Date
    May 2001
    Location
    Dayton, Ohio
    Posts
    4,977

  5. #5
    Join Date
    May 2001
    Location
    @ Work - Usually!
    Posts
    835
    Originally posted by interactive
    this is a pretty dumb way to do it but id just mail yourself the $QUERY_STRING it would give you all the variables posted to that page. hth
    Wow - that real clever

  6. #6
    Join Date
    May 2001
    Location
    Dayton, Ohio
    Posts
    4,977
    Yup.. Its one of the easiest ways todo it...

    I did a quick and simple formmail script, there is no checking so use at your own risk:

    PHP Code:
    <?php
    //Change these:
    $you "you\@bleh.net";
    $redirect "http://www.yourdomain.com/thanks.html";

    //Main Program:
    $buffer  $QUERY_STRING;
    $buffer  ereg_replace"&","\n",$buffer);
    $buffer .= "\nIP: $REMOTE_ADDR";
    mail($you,"Site Mailer",$buffer,"From: Site Mailer");
    header("Location: " $redirect);
    ?>

Posting Permissions

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