Results 1 to 7 of 7

Thread: PHP Adjustment?

  1. #1
    Join Date
    Aug 2009
    Posts
    4

    Question PHP Adjustment?

    I have a very simple form where I would like to capture two items: the username and a text box for answering a question. I do not need e-mail information. So is there an adjustment that must be made to the formmail.php file given that I am only interested in these two fields?

    I'm relatively new at all this so I appreciate any input you might have. Thanks!

  2. #2
    Join Date
    Jun 2009
    Location
    Houston
    Posts
    378

    Post Re: PHP Adjustment?

    email and realname are required fields for formmail. You can make them hidden if you like so the user does not see them. Set the value to whatever you like or make realname your username.

    You can then exclude them from your form results with the mail option "exclude". See link below.

    http://www.tectite.com/fmdoc/creating_forms.php

  3. #3
    Join Date
    Aug 2009
    Posts
    4

    Question Re: PHP Adjustment?

    Thanks for the response. So I've adjusted the form as per your recommendation and even though I have the following line:

    <input type="hidden" name="mail_options" value="Exclude=email" />

    I get the following error message when submitting the form:

    The following error occurred in FormMail :
    missing_fields
    Error=The form required some values that you did not seem to provide.
    Your email address

    I'm confused as to why this would be happening. Am I doing something incorrectly? Thanks.

  4. #4
    Join Date
    Jun 2009
    Location
    Houston
    Posts
    378

    Post Re: PHP Adjustment?

    You need to have a field defined on your form called email. Try adding


    <input type="hidden" name="email" value= "email@email.com" />

    The exclude statement just exculdes it from your results.

  5. #5
    Join Date
    Aug 2009
    Posts
    4

    Question Re: PHP Adjustment?

    Thanks for the quick response. So I added the line as you suggested. I'm just assuming I can place the line anywhere between steps 2-4. I ran the form with the new revised coding and I get this message again:

    An error occurred while processing the form .

    The form required some values that you did not seem to provide.
    Your email address

    Scratching my head...

  6. #6
    Join Date
    Jun 2009
    Location
    Houston
    Posts
    378

    Post Re: PHP Adjustment?

    What is the url to your form?

  7. #7
    Join Date
    Aug 2009
    Posts
    4

    Default Re: PHP Adjustment?

    PM'd some info.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. File Permissions for formmail.php & fmbadhandler.php?
    By cbp in forum Community Support
    Replies: 2
    Last Post: 28-Jul-2009, 12:12 AM
  2. PHP Snippets Not Executing with fmbadhandler.php
    By Duane in forum Community Support
    Replies: 2
    Last Post: 08-Apr-2009, 02:04 AM
  3. Help needed: testmail.php & testmail2.php
    By alikarabulut in forum Community Support
    Replies: 2
    Last Post: 04-Feb-2009, 10:17 AM
  4. Calling formmail from within a php & response to php
    By slanetx in forum Community Support
    Replies: 1
    Last Post: 02-May-2008, 03:16 PM
  5. New to PHP, When testing, browser tries to open PHP not execute
    By ptawadros in forum Community Support
    Replies: 1
    Last Post: 23-Feb-2008, 08:07 PM

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
  •