Results 1 to 6 of 6

Thread: Contact form problem
      
   

  1. #1
    johnlomb is offline Private
    Join Date
    Dec 2006
    Posts
    3

    Smile Contact form problem

    I set up a contact form on the index page at www.drink4health.biz

    I used the step by step instructions at

    http://youandmelinkup.info/forms/stepbystep.html

    The form sends e-mail, but it uses the address typed in the e-mail box instead of my address. I typed my address into the processingpage.php script (j.lomb@comcast.net) as instructed, but somehow I keep getting this unexpected result. The information is just resent back to the person who is trying to register.

    Thank you.

    John Lombaerde

  2. #2
    scubadiver's Avatar
    scubadiver is offline Lieutenant Colonel
    Join Date
    Aug 2006
    Location
    Hawaii
    Posts
    553

    Default Re: Contact form problem

    Aloha John, I had nothing but problems with forms so I had someone put them in on my website. One thing I have learned in developing my website, if something is not working after a while, I erase everything and start over from the beginning. This works for me. And sometimes it takes two or three tries. But I am an ametuer at all of this so it takes me longer and I need the help of others in building my website. Good luck.

  3. #3
    Join Date
    Mar 2006
    Location
    Mallorca, Spain
    Posts
    6,313

    Default Re: Contact form problem

    Your question was answered in your other post (by Naval)
    ....and if you really need help there is a contact email address at the bottom of the instructions.

    If you email me I will get back to you when I return from my weeks holiday.

    In the meantime I suggest that you check your email address that you put in the script..............

  4. #4
    johnlomb is offline Private
    Join Date
    Dec 2006
    Posts
    3

    Default Re: On going Contact form problem

    I really appreciate your response. I like the contact form you have designed and I like the interaction you designed.

    I don't think I explained the problem I am having clearly enough.

    This the processingpage.php file that I uploaded to my site.

    <?PHP
    // Receiving variables
    @$name = addslashes($_POST['name']);
    @$email = addslashes($_POST['email']);
    @$comments = addslashes($_POST['comments']);
    // error checking
    if (strlen($name) == 0 )
    {
    header("Location: name_error.html");
    exit;
    }
    if (strlen($email) == 0 )
    {
    header("Location: email_error.html");
    exit;
    }
    if (! ereg('[A-Za-z0-9_-]+\@[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+', $email))
    {
    header("Location: email_error.html");
    exit;
    }
    if (substr_count($comments, '@') > "2")
    {
    header("Location: comments_error.html");
    exit;
    }
    //Sending Email to form owner
    $mailto = "j.lomb@comcast.net";
    $mailsubj = "Feedback from my website form";
    $mailhead = "From: $email\n";
    reset ($HTTP_POST_VARS);
    $mailbody = "Values from my website form:\n";
    while (list ($key, $val) = each ($HTTP_POST_VARS))
    {
    if ($key!="submit")
    {
    $mailbody .= "$key : $val\n";
    }
    }
    mail($mailto, $mailsubj, $mailbody, $mailhead);
    // Autoresponder
    $mailto = $email;
    $mailsubj = "Copy of the info you Submitted";
    $mailhead = "From: website form\n";
    mail($mailto, $mailsubj, $mailbody, $mailhead);
    header("Location: confirmationpage.html");
    ?>

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

    My e-mail address is the only change I made to the file, as was instructed.

    What is happening, is that whatever e-mail address is entered on the form, that is the e-mail address that the information is sent to. In other words, if a prospect fills out the form, the info is sent right back to him, and not to me at all.

    Thank you very much again for your assistance.

  5. #5
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: Contact form problem

    As David cleared, the user gets an email because there is an autoresponder section in the script. If you don't receive the main email, it must be something with your email account.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  6. #6
    Join Date
    Mar 2006
    Location
    Mallorca, Spain
    Posts
    6,313

    Default Re: Contact form problem

    I have just downloaded the form from your website and used the script you poasted above and installed it all on MY website.

    I filled out YOUR form (here) and I received the confirmation email....

    Did you get the main email at your address ????

    Either email me or post confirmation here............

    as its working ok from here......have you checked your email account as Naval has suggested ??

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
  •  

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