Passing form values on PHP same page
one text
Solution:
The form in HTML page is a structure that allow you to insert some value and then can be passed to the backend with a specific HTTP Method called as GET,POST,PUT, DELETE etc.
Here an example:
// HTML Page. index.html
<form action="page.php" method="POST">
<input type="text" name="username">
<input type="submit">
// page.php
<?php
$username = $_POST['username'];
echo "Your username is: " . $username;
?>
Source