Re: Firefox versus IE

From: Date: Tue, 17 Apr 2007 11:24:30 +0000
Subject: Re: Firefox versus IE
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-27708@lists.php.net to get a copy of this message
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.


« previous php.windows (#27708) next »