Jump to content

PHP echo doesnt print the result on screen


Aleksey

Recommended Posts

  • 2 weeks later...
  • 1 year later...

hello,
I have a similar isue, my code looks like this

<!DOCTYPE html>
<html>
<head>
    <title>first php</title>
</head>
<body>
    <h1>The first php ever</h1>

<form method="POST" action="php-response.php">

            Name: <input type="text" name="name">

            <br>

            Password: <input type="password" name="password">

            <br>

            <input type="submit">
</body>
</html>

 

and my response code

<!DOCTYPE html>
<html>
<head>
    <title>php response</title>
</head>
<body>
<h1>PHP Form Processing</h1>

        <?php

        

        echo "The name entered: " . $_GET["name"];
        echo "<br>The password entered: " . $_GET["password"];

        ?>
</body>
</html>

greetings from Germany.


 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...