<form method="post" action="https://www.w3cschool.cn/statics/demosource/demo_php_request.php?action=request">
Name: <input type="text" name="fname">
<input type="submit">
</form>
<?php
if(isset($_REQUEST['fname'])){
$name = $_REQUEST['fname'];
echo $name;
}