As Gustav Wiberg said, try using double quotes (") instead of single (')...
Also, I've never used the html element <button>... Try this instead:
<form name="SelectEvent' ID="SelectEvent" method="get"
action="AdjustmentReport.php">
and
<input type="submit" value="Submit" />
<?php if (isset($HTTP_REFERER)):
echo "<input type=\"button\"
onClick=\"window.location='".$HTTP_REFERER."'\" value=\"Back\" />";
else:
echo "<input type=\"button\" onClick=\"history.back();\"
value=\"Back\">";
endif; ?>
And don't forget the </form> ... :)
For me that works fine in all browsers I've tried.
Mike
Alf Stockton skrev:
I have a web page that works perfectly with Firefox but fails with IE.
Please tell me what needs fixing.
I have extracted the bits I think are relavent as follows:-
<form name = 'SelectEvent' ID='SelectEvent' method='get'
action='AdjustmentReport.php'>
and
<BUTTON TYPE='submit'>Submit</BUTTON>
if (isset($HTTP_REFERER))
{
echo "<a href='$HTTP_REFERER'><BUTTON
TYPE='submit'>Back</BUTTON></a>";
} else {
echo "<a href='javascript:history.back()'><BUTTON
TYPE='submit'>Back</BUTTON></a>";
}
neither the submit nor the back buttons work in IE but both work fine
in Firefox.
Javascript is enabled in both browsers.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php