PHP Part- 2 Code?
PHP PART -2 CODE -:
index.php
<!DOCTYPE html>
<html>
<head>
<title>get method</title>
</head>
<body>
<form action="get.php" method="post">
Name :
<input type="text" name="name">
<br>
Age : <input type="text" name="age">
<br/> <br>
<button type="submit">Submit</button>
</form>
</body>
</html>
get.php
<?php
$name= $_POST['name'];
$age = $_POST['age'];
echo 'Name = '.$name;
echo '<br/> Age = ' .$age;
?>
No comments