Hi,
The field name for the user's email address must be named "email". You have it named "emailaddress".
ginger
Welcome to the Tectite Forums! You can download and get support for our free PHP FormMail (form processor) and other free software.
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
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>
Hi,
The field name for the user's email address must be named "email". You have it named "emailaddress".
ginger
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.
Do you have a valid email address specified in "recipients"? Also, have you put that email address in $TARGET_EMAIL inside the script?
ginger
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?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks