If I omit the “action” attribute in the form tag, will it automatically submit to itself? I tried it (on Firefox 1.5.0.6 and IE7 Beta 2) and it seems to work but I just want to make sure it’s safe to assume that it will work on all browsers.
For example:
<html>
<head>
<title>Foobar</title>
</head>
<body>
<?php
if(isset($_POST['push_me'])) {
echo '<p>Foobar</p>';
}
?>
<form method="post">
<input type="submit" name="push_me" value="foobar" />
</form>
</body>
</html>
Many thanks,
ZW:tb: