Create two php pages One lets the user enter a name and tele
Create two php pages. One lets the user enter a name and telephone number, and a second one to print them out. Use the GET method.
Solution
File 1st-
<html>
<body>
<form action = \"data.php\" method = \"GET\">
Name: <input type = \"text\" name = \"name\" />
Age: <input type = \"text\" name = \"phonenumber\" />
<input type = \"submit\" />
</form>
</body>
</html>
File 2-SAVE SECOND FILE WITH NAME data.php
<?php
if( $_GET[\"name\"] || $_GET[\"phonenumber\"] ) {
echo \"Welcome \". $_GET[\'name\']. \"<br />\";
echo \"Your phonenumber is\". $_GET[\'phonenumber\']. \" .\";
exit();
}
?>
