| Member with 112 posts. THREAD STARTER | | Join Date: May 2009 Location: florida Experience: Intermediate | |
Solved: need to shorten input boxes most of the fields are only 4 characters long but when the table is displayed, I have to scroll across to update because all the boxes are so long. Is there a way to avoid this?
PHP Code: <table cellspacing=0 cellpadding=0 border=1> <tr> <th>dep</th> <th>tenant</th> <th>apt</th> <th>paid</th> <th>due</th> <th>prev</th> <th>misc</th> <th>tentpay</th> <th>hudpay</th> <th>datepaid</th> <th>comments</th> </tr>"; while($row = mysql_fetch_assoc($result)) { echo "<tr> <td><input type='text' name='dep' value='" . $row['dep'] . "'></td> <td><input type='text' name='name' value='" . $row['name'] . "'></td> <td><input type='text' name='apt' value='" . $row['apt'] . "' readonly style='border:none;' onmouseup='this.blur()'></td> <td><input type='text' name='amtpaid' value='" . $row['amtpaid'] . "'></td> <td><input type='text' name='rentdue' value='" . $row['rentdue'] . "' readonly style='border:none;' onmouseup='this.blur()'></td> <td><input type='text' name='prevbal' value='" . $row['prevbal'] . "'></td> <td><input type='text' name='misc' value='" . $row['misc'] . "'></td> <td><input type='text' name='tentpay' value='" . $row['tentpay'] . "'></td> <td><input type='text' name='hudpay' value='" . $row['hudpay'] . "'></td> <td><input type='text' name='datepaid' value='" . $row['datepaid'] . "'></td> <td><input type='text' name='comments' value='" . $row['comments'] . "'></td> </tr>"; |