Php shows up blank in google

type or paste code here<html>
  <head>
    <style>
    <meta @charset "UTF-8";
    <title>Marks 1st website</title>
  </head>
  <body>
    <form action="site.php" method="get">
        Email: <input type="text" name="email">
        <input type="submit" name="Enter">
    </form>
    <br>
    <?php echo $_GET["email"] ?>
  </body>
</html>

also if I want to put php in an html document do I have to rename it to a .php file?

you have to rename it to .php and also have a server serve the file, the browser can’t read php, you need a php server

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.