Check If The Form Is Submitted Php

[Solved] Check If The Form Is Submitted Php | Php - Code Explorer | yomemimo.com
Question : check if the form is submitted php

Answered by : chandan-verma

<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>

Source : | Last Update : Sat, 05 Mar 22

Answers related to check if the form is submitted php

Code Explorer Popular Question For Php