I have been working to get this code working for a little while and finally got it to work by implementing two codes together. Except the formatting of it does not let my submit button work. My submit button acts a save by updating all data entered into the textboxes in a sql database. So this button is absolutely necessary. Please let me know what I'm doing wrong.

```
<?php
mysql_connect("localhost", "username", "password")or die("cannot connect"); 
mysql_select_db("databas")or die("cannot bselect DB"); 

$sql="SELECT * FROM test"; 
$result=mysql_query($sql); 

// Count table rows 
$count=mysql_num_rows($result); 
?> 
<html>
<head>
    <link rel="shortcut icon" href="../../favicon.ico">
    <link rel="stylesheet" type="text/css" href="css/normalize.css" />
    <link rel="stylesheet" type="text/css" href="css/styles.css" />
    <link rel="stylesheet" type="text/css" href="css/component.css" />
<script src="javafile.js"></script>
    </head>
    <body>

        <div class="component">

            <table class="overflow-y">

                <thead>
                    <tr>
<th width="16%" align="center"  id="box_header2" style='width:10%'><button class="logout"><a href="../login.php?status=loggedout">Log out</a></button>&nbsp;&nbsp;&nbsp;Name</th>
<th width="16%" align="center" id="box_header2" style='width:10%'>Job Code</th>
<th width="16%" align="center"  id="box_header2" style='width:10%'>Date</th>
<th width="14%" align="center" id="box_header2" style='width:20%'>Address</th>
</tr>
</thead>
<tbody>
<tr>
<?php 
while($rows=mysql_fetch_array($result)){ 
?> 
<form action="update3.php" method="post" name="form1">
<tbody>
<tr> 
<th>
<input name="name[]" type="text" id="Name" value="<? echo $rows['Name'];?>">
</th>
<td>
<input name="job[]" type="text" id="Job" value="<? echo $rows['Job']; ?>">
</td>
<td>
<input name="date[]" type="text" id="Date" value="<? echo $rows['Date']; ?>">
</td>
<td>
<input name="address[]" type="text" id="Address" value="<? echo $rows['Address']; ?>">
</td>
<td>
<input name="id[]" type="hidden" value="<? echo $rows['ID']; ?>">
</td> 
</tr> 
</tbody>
<?php 
} 
?> 
<tr> 

</tr>
</tbody>
<tbody>
<tr>  
<td>
<input type="submit" name="Submit" value="Save">
</td>
</tr> 
</tbody>
</table> 
</td> 
</tr> 
</form> 
</table> 
<?php 
mysql_close();  
?> 

```