Home  • Courses • Software Engineering
<?php if(isset($_POST["btnSubmit"])){ $name=$_POST["txtName"]; $age=$_POST["txtAge"]; echo "Hi, ".$name.". Your age is ".$age; } ?> <form action="#" method="post"> <div>Name<br/> <input type="text" name="txtName" /> </div> <div>Age<br/> <input type="text" name="txtAge" /> </div> <div> <input type="submit" value="Submit" name="btnSubmit" /> </div> </form>

Comments 0


Copyright © 2024. Powered by Intellect Software Ltd