<div class="contact-forum">
<h1>Contact Forum</h1>
<div class="contact-enters">
<form action="Home.php" method="post">
<div class="firstname">
<p>First Name:</p> </div> <input type="text" name="firstname" placeholder="FirstName" /> <br />
<div class="lastname">
<p> LastName: </p></div> <input type="text" name="lastname" placeholder="LastName" /> <br />
<div class="Email">
<p> Email: </p></div> <input type="text" name="email" placeholder="E-mail" /> <br />
<div class="topic">
<p>Topic: </p> </div><input type="text" name="topic" placeholder="Topic" /> <br />
<div class="message">
<p> Message: </p> </div> <div class="message-box"><input type="text" name="message" /></div> <br />
<input type="submit" name="Send" />
</form>
</div>
</div>
<div class="php">
<?php
$con = mysqli_connect("localhost", "KyleLongrich", "Cash7144") or die('can not connect to server');
mysqli_select_db($con,"kylelongrich") or die("could not connect to database");
if(isset($_POST['Send']))
{
$Firstname = strip_tags($_POST['firstname']);
$Lastname = strip_tags($_POST['lastname']);
$Email = strip_tags($_POST['email']);
$Topic = strip_tags($_POST['topic']);
$Message = strip_tags($_POST['message']);
$email_query = mysqli_query($con,"SELECT Email FROM emailquestions WHERE Email ='$Email'") or die("Could not check email");
$count_email = mysqli_num_rows($email_query);
if ($count_email > 0)
{
echo 'Your email is alread in use';
}
$sql = "INSERT INTO emailquestions (Firstname, Lastname, Email, Subject, Message) VALUES ('$Firstname','$Lastname','$Email','$Topic','$Message')";
mysqli_query($con, $sql);
$message = 'Your message has been sent';
}
$message='';
?>
When being displayed the submit button when hit won't send anything or work at all. no php code errors come back but it will not work properly. Could it be because of the the styling? Any help would be great
home.php?