Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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>
 
PREVIOUS NEXT
Tagged: #check #form #submitted #php
ADD COMMENT
Topic
Name
4+1 =