My HTML:

```
<form action="test.php" method="get">
    <input type="text" name="text" />
</form>

```

My PHP:

```
<html>
<head>
    <title>Result</title>
</head>
<body style="background:aqua;">

<?php
    $text = $_GET["text"];
    $text_html = htmlspecialchars($text);
    echo "<h1>Hi, {$text_html}</h1>";
?>

</body>

```

I want to transport and show data input from `type="text"` fields in my HTML form, into my PHP file, but the result is as per below:

> 
> Hi, {$text\_html}"; ?>
> 
> 
> 

Why is the extra code showing?

This is my Source Code.

[![Screenshot of source code.](https://i.stack.imgur.com/G7run.png)](https://i.stack.imgur.com/G7run.png)