<?php echo'<html> <body> <form action="index.php" method="post"> Name: <input type="text" name="name" /> Age: <input type="text" name="age" /> <input type="submit" name="submit" value="submit" /> </form> </body> </html>'; if(isset($_POST["submit"])) { if($_POST["name"]=="") { echo "Enter Name..."; exit();} if($_POST["age"]=="") { echo "Enter age..."; exit();} echo $_POST["name"].'<br/>'; echo $_POST["age"]; } ?>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)