0

I recently tried to link a PHP and HTML sheet, yet receive weird output.

My HTML Code is as follows:

<html>

<form action="index.php" method="post">
    <input type="text" name="username">
    <input type="text" name="password">
    <input type="submit" value = "Submit">

</form>

</html>

My PHP code is as such:

    <html>

    <head>
            <title>Information gathered </title>
    </head>


    <body>
        <?php 
            echo "<p>Data processed</p>"; 
        ?>

    </body>

</html>

When I click submit, it generates a new page with the following output:

Data processed"; ?>

Where does the ' "; ?> ' at the end of my string come from?

alexp2603
  • 355
  • 1
  • 4
  • 13

0 Answers0