<?php_x000D_
if(isset($_POST["loginForm"]))_x000D_
{_x000D_
print_r ($_POST); // FOR Showing POST DATA_x000D_
}_x000D_
elseif(isset($_POST["registrationForm"]))_x000D_
{_x000D_
print_r ($_POST);_x000D_
}_x000D_
elseif(isset($_POST["saveForm"]))_x000D_
{_x000D_
print_r ($_POST);_x000D_
}_x000D_
else{_x000D_
_x000D_
}_x000D_
?>_x000D_
<html>_x000D_
<head>_x000D_
</head>_x000D_
<body>_x000D_
_x000D_
<fieldset>_x000D_
<legend>FORM-1 with 2 buttons</legend>_x000D_
<form method="post" >_x000D_
<input type="text" name="loginname" value ="ABC" >_x000D_
_x000D_
<!--Always use type="password" for password --> _x000D_
<input type="text" name="loginpassword" value ="abc123" >_x000D_
_x000D_
<input type="submit" name="loginForm" value="Login"><!--SUBMIT Button 1 -->_x000D_
<input type="submit" name="saveForm" value="Save"> <!--SUBMIT Button 2 -->_x000D_
</form>_x000D_
</fieldset>_x000D_
_x000D_
_x000D_
_x000D_
<fieldset>_x000D_
<legend>FORM-2 with 1 button</legend>_x000D_
<form method="post" >_x000D_
<input type="text" name="registrationname" value ="XYZ" >_x000D_
_x000D_
<!--Always use type="password" for password -->_x000D_
<input type="text" name="registrationpassword" value ="xyz123" >_x000D_
_x000D_
<input type="submit" name="registrationForm" value="Register"> <!--SUBMIT Button 3 -->_x000D_
</form>_x000D_
</fieldset>_x000D_
_x000D_
_x000D_
</body>_x000D_
</html>
_x000D_
When click on Login -> loginForm