I am trying to create a web form for a website, but when I hit send, the page links to the .php file. Please tell me what I am doing wrong.
The .html and .php codes respectively look like this:
<form action="email.php" method="post">
<input class="input-text animated wow flipInY delay-02s" type="text" name="name" value="Your Name *" onFocus="if(this.value==this.defaultValue)this.value='';" onBlur="if(this.value=='')this.value=this.defaultValue;">
<input class="input-text animated wow flipInY delay-04s" type="text" name="email" value="Your E-mail *" onFocus="if(this.value==this.defaultValue)this.value='';" onBlur="if(this.value=='')this.value=this.defaultValue;">
<textarea class="input-text text-area animated wow flipInY delay-06s" name"description" cols="0" rows="0" onFocus="if(this.value==this.defaultValue)this.value='';" onBlur="if(this.value=='')this.value=this.defaultValue;">Describe your facilities and what you’re looking for. *</textarea>
<input class="input-btn animated wow flipInY delay-08s" type="submit" value="send message">
</form>
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$description = $_POST['description'];
$to = "Email Address";
$subject = "Facility and Other Specifications";
mail($to, $subject, $description "From: " . $name);
echo "Your message has been sent.";
?>
Also, I am not certain how to use PHP with the .php and .html files, or whether or not the operating system I am using (Snow Leopard) already comes with it.
I'm a little new to all of this, and any bit of information will be greatly appreciated.