I've got a really basic problem that's been bugging me for a while. I simplyfied the code to the extreme to show you what I want to do and what happens. The code:
<?php
if (isset($submit)) {
echo "The form was submitted";
}
?>
<head></head>
<body>
<form method="post" action="<?php echo $PHP_SELF?>">
<input type="text" name="textname">
<input type="submit" name="submit" value="Submit">
</form>
</body>
This form works like I inteded if you press the Submit button. If you however use Internet Explorer and instead of pressing "submit" press the Enter-key, the page only refreshes and clears the form without sending the data. If you use Netscape the form is submitted with the use of Enter.
What am I doing wrong? Why doesn't it work in Internet Explorer?