I have created a HTML page in blogger which takes password input from user and transfer the password to my another site. Where my PHP file is stored.
Html code in blogger page:
<div dir="ltr" style="text-align: left;" trbidi="on">
<html lang="en">
<head>
<title>Password Protect</title>
</head>
<body>
<table>
<form action="https://www.wallpapersforandroid.com/quantum.php" method="post">
<tr>
<td>
password:
</td>
<td> <input name='pass' type='password'/></td>
</tr>
<tr>
<td colspan="2">
<center>
<input type=submit value=submit />
</center>
</td>
</tr>
</table>
</body>
</html>
</div>
PHP file code stored in my another site:
<?php
if ($_POST['pass'=='gogo']) {
echo 'welcome to the secret page';
} else {
echo 'incorect pass';
}
?>
Although I typed gogo in form it always run the code inside else statement.
Aucun commentaire:
Enregistrer un commentaire