I have made an html page with forms and tables where I input words and numbers and have submit button. Once I click the submit button it outputs the right information that I inputed into a php file BUT it does not save, have do I save it is my question? Here is part of my html code where I input the information:
<body>
<form action="physical_server_check_list_saved.php" method="post">
<table width="800" align="left">
<th width="800" align="left" colspan="2" bgcolor="#D3D3D3">SERVER INFORMATION</th>
<tr>
<td width="200" align="left">Server name:</td>
<td width="600" align="left"><input type="text" size="100" name="servername"></td
/tr>
tr>
<td width="200" align="left">Contact:</td>
<td width="600" align="left"><input type="text" size="100" name="contact"></td
/tr>
<tr>
<td width="800" align="left" colspan="2">
<input type="submit" value="submit">
</td>
</tr>
</table>
</form>
</body>
Here is part of my php code, it is the same format except php code added to the table cells displaying the output:
<tr>
<td width="200" align="left">Server name:</td>
<td width="600" align="left">
<?php
$servername = $_POST['servername'];
echo $servername;
?>
</td>
</tr>
<tr>
<td width="200" align="left">Contact:</td>>
<td width="600" align="left">
<?php
$contact = $_POST['contact'];
echo $contact;
?>
</td>
</tr>