I have the following code:
<form enctype="multipart/form-data" id="search_form" name="search_form" action="thisfile.php#anchorname" method="get">
<!-- Lots of search fields here -->
<input name="search" type="submit" value="Search" />
</form>
<?php if (isset($_GET['search'])) {
// Search in database
?>
<div id="anchorname">
<!-- Table with results here -->
</div>
<?php
}
This works fine in IE (crazy, I know) but in Chrome and Firefox, after the form is submitted and the results table is displayed, the button doesn't resubmit the form but only makes the page scroll down to anchorname. In Chrome I can reload the page by clicking on the address bar and hitting enter, but when I do that in Firefox, nothing happens at all. What am I doing wrong?