html/php form

Discussion in 'Web Design and Development' started by Mike Teezie, Apr 27, 2007.

  1. Mike Teezie macrumors 68020

    Mike Teezie

    Joined:
    Nov 20, 2002
    #1
    I want to add a questionnaire page to my website for clients to fill out, so I can get a little preemptive information about them.

    This is honestly a little bit above my head I think, so do you guys know of anybody that offers forms for installation on a website?
     
  2. Sdashiki macrumors 68040

    Sdashiki

    Joined:
    Aug 11, 2005
    Location:
    Behind the lens
    #3
  3. tominated macrumors 68000

    tominated

    Joined:
    Jul 7, 2006
    Location:
    Queensland, Australia
  4. Trogloxene macrumors regular

    Joined:
    Apr 17, 2007
    #5
    Here's the PHP for my sendform.php file:

    <?php
    $useremail = "";
    $email="name@yourdomain.com";
    $body="Discover Caves Feedback:\n\n";
    while (list($key, $val) = each($HTTP_POST_VARS)) {
    $body.="$key ==> $val\n";
    if ($key == "Email_Address") {
    $useremail = $val;
    }
    }
    mail($email,"Discover Caves Feedback",$body, "From: name@yourdomain.com");
    ?>

    <?php

    echo "<script language=\"JavaScript\"> ";
    echo "location='/index.htm';";
    echo "</script>";

    ?>

    ---------------------

    Here's the form page:
    http://discovercaves.com/contact.htm

    Go there and view source to see how to call PHP.

    -T
     
  5. subwarm macrumors member

    subwarm

    Joined:
    Feb 4, 2003
    Location:
    Westchester, NY
    #6
  6. operator macrumors regular

    Joined:
    Oct 29, 2006
    Location:
    Canada
    #7
    It's also a good idea to look into "image verification" for your form. Without it, you form can be hijacked to send spam to thousands of others without your knowledge. THis has happened to me, and is quite common.
     

Share This Page