如果条件在这里不起作用。我已经完成了早期的解决方案,但我没有找到正确的解决方案。我无法理解原因。请帮帮我
<?php
require'core.inc.php';
require'connect.inc.php';
include 'header.php';
if(isset($_POST['submit'])) {
$query="INSERT INTO college (CollegeName) VALUES ('".$_POST['college']."')";
$result=mysql_query($query) or die(mysql_error());
header('Location:index.php');
}
?>
<form action="insert.php" method="POST">
<input type="text" name="college">
<input type="submit" value="submit" value="Submit">
</form>
<?php include'footer.php';?>