I have a simple form for a back button that is supposed to take the PHP $_SERVER['HTTP_REFERER']
and use that as the action
for the button.
<?php
echo "<form class='BackButton' action='" . $_SERVER['HTTP_REFERER'] . "'>";
echo "<input type='submit' class='button' value='Back' />";
echo "</form>";
?>
When I navigate to the page with this button and hover over the button it has the correct action='http://engsys.corp.ftr.com//MaterialTracking_Filtered_State.php?search=in'
Then when I click the button it drops the ?search=in
and so the page that comes up isn't correct.
Why does it do this? I thought since it's in the action
that it wouild all be sent?