Php shows up blank in google

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

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.