<?php
$name = $email = "";
if($_SERVER["REQUEST_METHOD"]== "POST")
{
$name = $_POST["name"];
$email = $_POST["email"];
}
?>
<form action="pro.php" method="post">
<label> Name : </label>
<input type= "text" name="name"/><br />
<label> Email : </label>
<input type="email" name="email"/><br />
<input type = "submit" name="submit" value ="Submit" />
</form>
<?php
if($_SERVER["REQUEST_METHOD"] == "POST")
{
echo "$name";
echo "$email";
}
?>
$name = $email = "";
if($_SERVER["REQUEST_METHOD"]== "POST")
{
$name = $_POST["name"];
$email = $_POST["email"];
}
?>
<form action="pro.php" method="post">
<label> Name : </label>
<input type= "text" name="name"/><br />
<label> Email : </label>
<input type="email" name="email"/><br />
<input type = "submit" name="submit" value ="Submit" />
</form>
<?php
if($_SERVER["REQUEST_METHOD"] == "POST")
{
echo "$name";
echo "$email";
}
?>
No comments:
Post a Comment