HTML not running PHP in FireFox

I have a basic code in PHP (Test.php):

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
echo ("Hello world!");

It is called by an HTML file:

<DOCTYPE html>
<link rel="stylesheet" type="text/css" href="HTML/Adventures/mystyle.css">
  <form action="Test.php">    
    <center><h1>LOGIN SCREEN</h1></center>
    <input type="submit">
  1. When I run it directly through localhost, I get "Hello World"
  2. When I run the HTML through IE browser, I get "Hello World"
  3. But, when I run the HTML through FireFox, I get a blank screen. Can you please direct me to a setting that I can either embed into my code or into the Apache conf file that will correct this. I don't want Firefox user to be excluded from my site..

1 answer

  • answered 2020-06-27 07:05 Keral Patel

    If a script outputs in one browser and doesn't then it is definitely HTML or Browser side issue of non compatibility because script doesn't bothers which browser you are using. So just take PHP out of the equation here and focus on HTML and Browser.

    Also check Test.php directly in Firefox. Because the previous page has nothing to do with this.

    That way you remove different angles and close in onto the real issue.

    Most probably it is browser issue.

    Click on Inspect Element and check errors that browser outputs (if any)