+ Reply to Thread
Results 1 to 6 of 6

Thread: A few quick newbie questions

  1. #1
    Join Date
    Jun 2008
    Posts
    3

    Default A few quick newbie questions

    I have used formmail my whole life, but after I found this amazing script I had to get with the times.

    I have a form text box's. I have setup everything right. I have a

    realname
    phone
    email
    mesg

    I get the email after submittion, but for some reason, the email subject is from "Nobody [nobody@server.hostname.com"

    and the email box is empty. The realname and mesg come in fine, but the phone is not even in the email and the email: is blank eventhough i had filled out that field on the site.

    When I put the required fields for email and name, it would always give me an error about how the email field is required and needs to be filled out, BUT I AM FILLING IT OUT. AHHHHH

    This is what my HTML looks like

    HTML Code:
    <form method="post" action="http://www.mysite.com/contact_us.php" name="SampleForm">
        <input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT,AUTH_TYPE,REMOTE_USER">
        <input type="hidden" name="recipients" value="myemailaddress-mydomain.com" />
        <input type="hidden" name="subject" value="Contact Us Form" />
        <input type="hidden" name="good_url" value="thanks.html" />
        <input type="hidden" name="bad_url" value="thanks.html" />
    
                                                        <table>
                                                          <tr>
                                                            <td>
                                                                  <div>Name:<br />
                                                                    <input type="text" name="realname" />
                                                                  </div>
                                                              <div style="padding-top:15px;">Phone:<br />
                                                              <input type="text" name"phone"/>
                                                              </div>
                                                            <div style="padding-top:15px;">Email:
                                                              <br />
                                                            <input type="text" name"emailaddress" />
                                                            </div></td>
                                                              <td style="padding-left:10px;"><div>Message:
                                                                    <textarea name="mesg" cols="48" rows="6"></textarea>
                                                              </div>
                                                              <div style="padding-top:5px" align="right">
                                                                <input type="image" src="images/send.gif"  width="33" height="11" />
                                                              </div>
                                                                    <div class="tar"></div></td>
                                                          </tr>
                                                        </table>
                                    </form>

  2. #2
    Join Date
    May 2008
    Posts
    1,281

    Default Re: A few quick newbie questions

    Hi,

    The field name for the user's email address must be named "email". You have it named "emailaddress".

    ginger

  3. #3
    Join Date
    Jun 2008
    Posts
    3

    Default Re: A few quick newbie questions

    Ginger, IM glad you noticed that, but unfortunately i changed that because i thought "email" wasnt working, but regardless of if I put "email" or "emailaddress" or even "bonzana" it still wont come through.

  4. #4
    Join Date
    May 2008
    Posts
    1,281

    Default Re: A few quick newbie questions

    Do you have a valid email address specified in "recipients"? Also, have you put that email address in $TARGET_EMAIL inside the script?

    ginger

  5. #5
    Join Date
    May 2008
    Posts
    1,281

    Default Re: A few quick newbie questions

    Another thing I noticed in your form code that you posted is that the email field is missing the "=" sign before the field name; same thing with the phone field.

    All of these things need to be correct for it to work as you want it to.

    ginger

  6. #6
    Join Date
    Jun 2008
    Posts
    3

    Default Re: A few quick newbie questions

    Quote Originally Posted by ginger23 View Post
    Another thing I noticed in your form code that you posted is that the email field is missing the "=" sign before the field name; same thing with the phone field.

    All of these things need to be correct for it to work as you want it to.

    ginger

    YAYY!!! it was the "=" sign. It works great! Thanks ginger, hey ginger, are you as good looking as the ginger on gilligan's island? lol

    Also, is there a way of getting rid of the x: 15 y: 8 in the email you get. I understand its where the user click on the submit button, but i dont really need that info. How can I get rid of it?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. newbie problem
    By istory in forum FormMail Subscription Support
    Replies: 3
    Last Post: 03-Dec-2004, 09:34 AM
  2. Changing 'From' field and other questions
    By middleburyman in forum FormMail Subscription Support
    Replies: 7
    Last Post: 02-Sep-2004, 09:54 PM
  3. Newbie please help no recipents error
    By Mikej in forum FormMail Subscription Support
    Replies: 3
    Last Post: 23-Apr-2004, 06:55 AM
  4. Newbie: Help for the .php challenged
    By jeanie in forum FormMail Subscription Support
    Replies: 7
    Last Post: 29-Mar-2004, 09:49 PM
  5. Form Mail Questions
    By Ramius in forum FormMail Subscription Support
    Replies: 5
    Last Post: 12-Jan-2004, 04:22 AM

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