I'm very new to php, so apologies if I'm missing something very basic here.
My simple form, which is supposed to Post to email, gets interpreted as a Get request with either a 304 or 500 code.
Here is the relevant form code currently:
<form name="customerreqform" action="/processingscript.php/" method="post">
\\ form stuff
<input type="submit" value="Submit" method="post" action="/processingscript.php/">
I am using some validation script with if ($SERVER[$_"POST"])
on the same page.
This is the processing script (fname, etc., are the form input names):
<?php
if($_POST["Submit"]) {
mail("email@email.com", "Form to email message", $_POST["fname", "lname", "email", "document", "comments"], "From: an@email.address");
}
?>
When I try to input data to the form, the page just reloads, and nothing gets sent.
I've enabled php and have attempted to confirm the mail settings in php.ini, but I don't have access.
Thanks in advance.