but works for others! Tried on php 4.3.10 and 5.1.2
All I keep getting is "enter a name" when i enter text and hit submit, but for other people who tested the code it works for some reason....
<html>
<body>
<FORM action="test.php" method="POST">
Enter name:<input type="text" name="name">
<input type="submit" name="submit">
</FORM>
<?php
if ($_POST['submit']){
echo $_POST['name'];
}else{
echo "enter a name";
}
?>
</body>
</html>