PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I'm attempting to learn php. I thought I had a small grasp and then I did a tutorial on a form that mails you the information filled out in the form.
I built the html file, attached it to the php code, and tested it. It did not send the email but it did give me the text to say that I filled out the form. Which to me says that the code should be working since that is in the php file and not anywhere on the html file.
Any thoughts?
here is the code
and the place where it is stored online if you want to test the html.
Thanks for the help. I changed that and it didn't seem to fix the problem. But that will help me clean up my coding so thank you for help. Any other thoughts on what it could be? I can't seem to put my finger on it but it seems like an issue with the command to mail the form.
beanboy3001 wrote:Thanks for the help. I changed that and it didn't seem to fix the problem. But that will help me clean up my coding so thank you for help. Any other thoughts on what it could be? I can't seem to put my finger on it but it seems like an issue with the command to mail the form.
I think your server runs on Windows. Have you checked your PHP.ini? Read here for some reference: http://www.w3schools.com/PHP/php_ref_mail.asp. This might be a compatibility issue.
beanboy3001 wrote:If the issue is compatibility. Whats the best solution for that?
PHP mail runs best on Apache Linux based servers, you are running Windows (which means a lot of things to do). If you cannot change your server type or having difficulty in dealing with it, contact your webhosting agency ask them to configure your mail settings.
That seemed to fix the email issue.
The problem now is that the email I get has the catigories but none of the information that it is supposed to fill out.