Answers for "check if the form is submitted php"

PHP
0

check if the form is submitted php

<html>
<head>
<title>Test</title>
</head>
<body>

<form method="post">

Enter value1 :<input type="text" name="firstname"><br/>
Enter value2 :<input type="text" name="lastname"><br/>
<input type="submit" value="Submit" name="submit"><br/><br/>

<?php
if(isset($_POST["submit"]))
{
$firstname = $_POST['firstname'];
$lastname = $_POST['lastname'];
echo "Success";

}
?>

</form>
</body>
</html>
Posted by: Guest on February-26-2022

Code answers related to "check if the form is submitted php"

Browse Popular Code Answers by Language