<html> <head> <title>Dynamic Input</title> </head> <body> <h1 align="center">Dynamic Input in PHP</h1> <hr> <form method="post"> Your Name: <input type="text" name="full_name" placeholder="Enter Your Name:"> <br> <input type="submit" value="Display" name="sub"> </form> </body> </html><?php if(isset($_REQUEST['sub'])) { $name = $_REQUEST['full_name']; echo "Welcome ".$name; } ?>