[FONT="]Hi everyone[/FONT][FONT="],[/FONT][FONT="] I’m a self taught noob, who is still learning and have[/FONT][FONT="] been trying to figure out why my mailer.php file is not working. Well I think that is the problem. Unless I’m completely wrong. Whenever I press the submit button for my contact form it gives me a window with two errors.[/FONT]
[COLOR=DarkSlateBlue][FONT="]“[/FONT][FONT="]The requested URL /contact/mailer.php was not found on this server.[/FONT][FONT="][/FONT][/COLOR]
[COLOR=DarkSlateBlue][FONT="]Additionally, a 404 Not Found error was encountered while trying to use an Error[/FONT][FONT="] [/FONT][FONT="]Document to handle the request.[/FONT][/COLOR][FONT="][COLOR=DarkSlateBlue]”[/COLOR][/FONT]
[FONT="](Also, this is on the page as well.)[/FONT]
[COLOR=DarkSlateBlue][FONT="]Apache/2 Server Port 80[/FONT][/COLOR][FONT="][COLOR=DarkSlateBlue])[/COLOR][/FONT]
[FONT="]With this mailer php I found and made subtle changes to it to correspond with the contact form I made, I’m trying to have messages sent from a website to my email. If anyone out there knows what my problem is and could steer me in the right direction. I would be extremely appreciative.[/FONT]
[FONT="]
[/FONT]
[FONT="]Contact form code:[/FONT]
[FONT=굴]
[/FONT]
[FONT=굴]<form method=“POST” action=“mailer.php”>[/FONT]
[FONT=굴]<label for=“Name” id=“Name”>Name:</label>[/FONT]
[FONT=굴] <input type=“text” name=“Name” />[/FONT]
[FONT=굴] [/FONT]
[FONT=굴] <label for=“Email” id=“Email”>Email:</label>[/FONT]
[FONT=굴] <input type=“text” name=“Email” />[/FONT]
[FONT=굴] [/FONT]
[FONT=굴] <label for=“Tel” id=“Tel”>Tel:</label>[/FONT]
[FONT=굴] <input name=“Tel” type=“text” maxlength=“20” />[/FONT]
[FONT=굴] [/FONT]
[FONT=굴] <label for=“Message” id=“Message”>Message:</label>[/FONT]
[FONT=굴] <textarea name=“Message” rows=“20” cols=“20”></textarea>[/FONT]
[FONT=굴] <input type=“submit” name=“Submit” value=“Submit” class=“submit-button” />[/FONT]
[FONT=굴] [/FONT][FONT=굴]</form>[/FONT]
[FONT="]PHP code:[/FONT]
[FONT=굴]<?php [/FONT]
[FONT=굴]if(isset($_POST[‘submit’])) { [/FONT]
[FONT=굴]$to = "myemail@hotmail.com"; [/FONT]
[FONT=굴]$subject = “Form Tutorial”; [/FONT]
[FONT=굴]$name_field = $_POST[‘name’]; [/FONT]
[FONT=굴]$email_field = $_POST[‘email’];[/FONT]
[FONT=굴]$tel_field = $_POST[‘tel’];[/FONT]
[FONT=굴]$message = $_POST[‘message’]; [/FONT]
[FONT=굴] [/FONT]
[FONT=굴]$body = “From: $name_field
E-Mail: $email_field
Tel:
$tel_field
Message:
$message”; [/FONT]
[FONT=굴] [/FONT]
[FONT=굴] [/FONT]
[FONT=굴] echo “Data has been submitted to $to!”; [/FONT]
[FONT=굴]mail($to, $subject, $body); [/FONT]
[FONT=굴]} else { [/FONT]
[FONT=굴]echo “blarg!”; [/FONT]
[FONT=굴]} [/FONT]
[FONT=굴]?>[/FONT]
:no_love: