Ok, I have been working on a simple PHP Form script, but it's not working for some reason. Can someone please make a good contact form for my website that actually works. This is the code I had to just test it out to make sure it worked...:
<html>
<head>
<body>
<form name="kevin" method="post" action="index.php">
Enter your email  <input type="text" name="name"><br>
<input type = "button" name="submit" value="Click me to email" >
</form>
</body>
</html>
<?php
if(isset($_POST['submit'])){
$input = $_POST['name'];
print $input;
$subject-"test";
$body="This is a test email";
mail ($name,$subject,$body);
}
?>
Thanks in advanced!!
Tags: