Here is my code.
<!DOCTYPE=HTML>
<html>
<head>
</head>
<body>
<?php
require("connect.php") or die("failed to connect to server.");
if (isset($_POST['submit'])){
echo'Goodwork!';
}else{
echo'<form action="signup.php" method="POST">
Fistname: <input type="text" name="fname"/></br>
Lastname: <input type="text" name="lname"/></br>
Phone Number: <input type="text" name="phonenumber"/></br>
Email: <input type="text" name="email1"/></br>
Confirm Email: <input type="text" name="email2"/></br>
Password: <input type="password" name="pass1"/></br>
Confirm Password: <input type="password" name="pass2"/></br>
<input type="submit" name="submit">
</form>';
}
?>
</body>
</html>
However when I run this the browser just gives me a white page with no form. I have tried taking away the "if (isset($_POST['submit'])){echo'Goodwork!';}" bit but have had no luck. What is up with my PHP?