What's new

mail.php not being called from contact.php to do validation and send


New member
I'm running a test website locally on apache2. It has a contact page that is supposed to call mail.php to validate the form and send the mail. I know it won't actually send the email but it should do the validation. I've tried doing emails with obvious errors that should be caught by mail.php but I'm getting no error messages. Here's the pertinent section from contact.php:

<form id="form1" method="POST" action="mail.php">
<input type="text" name="name">

<label>Email Address</label>
<input type="email" name="email">
<label>Select a Category</label>
<select name="type" id="category" size="1">
<option value=''> </option>
<option value='Questions'>Questions</option>
<option value="Report Problem">Report Problem</option>
<option value='Suggestion'>Suggestion</option>
<option value='Other'>Other</option>
<option value="Website Problem"> Website Problem</option>
<p class="full">
<textarea name="message" rows="5"></textarea>
<p class="ctr">
<button type="submit" value="Send" style="text-align: center;">Send Email</button>