Results 1 to 2 of 2

Thread: Simple Name & Email Collection Form Fails, But Long Form Works

  1. #1
    Join Date
    Jun 2009
    Location
    Texas
    Posts
    20

    Question Simple Name & Email Collection Form Fails, But Long Form Works

    I have Formmail working on several sites, including the problem site. But in each case, the form collects extensive data on a single "Feedback" page (Name, email, company, address, city, state, etc). But on this one site, I also want to have a simple two-field form on the left side of every page that simply asks for a name and email address. The major form on the "Contact Us" page works as intended, including Captcha. But the two-field form on every page fails.

    Since the "Contact Us" form requires Captcha, I needed to use a different php file. I copied formmail.php to a new name and added a double slash (//) in front of $REQUIRE_CAPTCHA. Then in called the new formmail php file in the HTML POST statement.
    .
    FYI, derive_fields is "email=emailaddr,realname=emailname,replyto=emailaddr"


    When I fill in the form, the URL that is returned is:

    Code:
    http://www.agricotreefarms.com/hp_formmail/fmbadhandler.php?this_form=http%3A%2F%2Fagricotreefarms.com%2Fcontact.html&bad_template=%2Foops.html&error=The+form+required+some+values+that+you+did+not+seem+to+provide.+&extra=&errcode=missing_fields&isusererror=1&alerted=0&erroritem1=&emailname=Me+the+Great&emailaddr=test%40gurusinc.com&sendeml=++Request+Info++&PHPSESSID=u9mad7j8c2va00ias073luf4j5
    That URL sends the browser to my 404 error page, which tells the user that the page is not found. Furthermore, the email is never sent.

    The offending form can be found on the left side of the page, at: http://www.agricotreefarms.com/about.html

    Any ideas?

    Thanks.
    Last edited by ActionAmerica; 29-Jul-2011 at 07:08 PM. Reason: clarity

  2. #2
    Join Date
    Jun 2009
    Location
    Texas
    Posts
    20

    Smile Re: Simple Name & Email Collection Form Fails, But Long Form Works [SOLVED]

    I figured it out.

    I had commented out the $REQUIRE_CAPTCHA line and that was the problem. To turn off Captcha, I had to set $REQUIRE_CAPTCHA to null ($REQUIRE_CAPTCHA = "").

    I did that and everything works fine.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 15-Dec-2009, 09:03 PM
  2. Replies: 5
    Last Post: 06-Jan-2009, 02:52 AM
  3. Replies: 3
    Last Post: 02-Jan-2009, 12:27 PM
  4. Replies: 2
    Last Post: 02-Jan-2009, 12:11 PM
  5. Test mail works, sample form fails
    By Randy in forum Community Support
    Replies: 0
    Last Post: 30-Oct-2006, 03:52 PM

Tags for this Thread

Bookmarks

Posting Permissions

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