I'm trying to get the data from my HTML form and store it in a database. But everytime I submit it, it only shows me the code I inputted in the PHP not the output.
HTML code:
<form action="testing.php" method="POST" >
<tr>
<td> Student No. </td>
<td class="info"> <input class="input" type="text" name="Number"/> </td> </br>
</tr>
<tr>
<td> Password: </td>
<td class="info"> <input class="input" type="password" name="Password"/> </td>
</tr>
<tr>
<td class="submit"><Input type="submit" value="Sign In"/></td>
</tr>
</form>
PHP Code:
<?php
$comments=""; if(isset($_POST["Number"])) { $comments = $_POST["Number"]; }
$checker=""; if(isset($_POST["Password"])) { $comments = $_POST["Password"]; }
?>