check if the form is submitted php example code

check if the form is submitted php example code

check if the form is submitted php example

check if the form is submitted php example in 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>
By Manish Salunke In php -

Tags:

php

Sponsors

themeforest
pluralsight
Invest in you. Online courses as low as $11.99