![]() |
Contact Form Problem
Hello people ,
First i have to tell you that my english is not perfect , but i hope you will understand me. I got an problem with A Mail form on my website , I downloaded an template that have e mail form in contact page , but i dont know where to input my e-mail as owner who will recieve e mails that people send me from this form. And normaly after pressing send there should come an message if it was sucessfully sent or not . Here are the codes , and tell me how to fix it . How to bring this form working normaly how it should. ______________________________ I got 2 files named " MailHandler.php " and " MailHandler.ashx " . This Files are located in an folder named " bin " . MailHandler.php code : PHP Code:
Code:
<%@ WebHandler Language="C#" Class="Handler" Debug="true" %>Code:
<form id="contact-form">Thank you very much people! |
You just need to insert the value name the contact form like this name="yorname"
simple mail function with php PHP Code:
Quote:
|
Aham , Can you tell me where should I add this php code directly ?
Can you give me the right codes ? And I dont understand what means this red words Quote:
Thank you very much |
simple mail function with you contact form
PHP Code:
Code:
<?php |
Okay , I fixed that now , its working fine .
But now i have another problem ... This Phone field is not working I become message with e mail , name and text message but there is not phone number .. How to fix that ? Thank you very much. |
email injection
The following is not very effective in this regard: PHP Code:
|
Quote:
PHP Code:
Thank you |
PHP Code:
|
minkoko , this is an good solution , but there is an little problem.
Look at this Image : http://s1239.beta.photobucket.com/us...5a979.jpg.html Its telling me " Numbers is :0038766336703 <fightingforlove@greenmail.netphone> " And it should be " Phone Number is : 0038766336703 <fightingforlove@greenmail.net> " Can you fix this code please ? And thank you very much for spending time on my problem! |
PHP Code:
|
Okay , now i got what i wanted.
Thank you very much ! |
Hmm , can anyone tell me how to add option "Required" to some fields ?
So when this required field in not filled then the message wont be sent , and he will get this message which is placed in this php " Cannot Send your mail for error " . And how can I add drop down list option ? Thank you very much ! |
Try the following code. I've cleaned up yours a bit to make it easier to read.
It's untested but simple enough that it should work. I've commented it to help you PHP Code:
|
Hey CkirSter , thank you for spending your time on my problem , but this codes are not working correctly .
After filling all fields and press send button , nothing happens , and i dont become the e mail , and there is not coming the message if it was sent sucessfully or not . Its not working :S Can you take a look on this codes and find where is problem ? Thank you very much. |
I might be confusing you a little.
I was using minkoko's last code as an example. I also never tested it but can see at second glance the PHP Code:
PHP Code:
The code I added to it is there to give you a simple example of setting errors and stopping the script calling the "mail" function if there are errors. That should help point you in the right direction |
| All times are GMT +1. The time now is 05:18 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.