Tutorial Title: Extracting Information from form
Course: PHP
Instructor: Muhammad Samim
1.
<?php
if(isset($_POST["anyName"]))
{
$anyNameOfVariableForEmail = $_POST["anyNameForEmail"]; //Now because of it email must be typed otherwise it will not work
$anyNameOfVariableForPassword = $_POST["anyNameForPassord"];//Now because of it password must be typed otherwise it will not work
echo $anyNameOfVariableForEmail; //It will display the email
echo $anyNameOfVariableForPassword; //It will display the password
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<form action="21form.php" method="post">
<input type="text" placeholder="Email" name="anyNameForEmail">
<input type="password" placeholder="Password" name="anyNameForPassord">
<br>
<input type="submit" name="anyName">
</form>
</body>
</html>
Course: PHP
Instructor: Muhammad Samim
1.
<?php
if(isset($_POST["anyName"]))
{
$anyNameOfVariableForEmail = $_POST["anyNameForEmail"]; //Now because of it email must be typed otherwise it will not work
$anyNameOfVariableForPassword = $_POST["anyNameForPassord"];//Now because of it password must be typed otherwise it will not work
echo $anyNameOfVariableForEmail; //It will display the email
echo $anyNameOfVariableForPassword; //It will display the password
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<form action="21form.php" method="post">
<input type="text" placeholder="Email" name="anyNameForEmail">
<input type="password" placeholder="Password" name="anyNameForPassord">
<br>
<input type="submit" name="anyName">
</form>
</body>
</html>
Comments
Post a Comment