Current location: Hot Scripts Forums » Programming Languages » PHP » need to shorten input boxes


need to shorten input boxes

Reply
  #1 (permalink)  
Old 09-04-10, 11:45 AM
ckdoublenecks ckdoublenecks is offline
Wannabe Coder
 
Join Date: Jul 2010
Posts: 123
Thanks: 11
Thanked 0 Times in 0 Posts
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>"; 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 09-04-10, 12:22 PM
Wolf1994 Wolf1994 is offline
Wannabe Coder
 
Join Date: Sep 2005
Location: Russia
Posts: 117
Thanks: 0
Thanked 0 Times in 0 Posts
<input size=4...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 09-04-10, 02:24 PM
ckdoublenecks ckdoublenecks is offline
Wannabe Coder
 
Join Date: Jul 2010
Posts: 123
Thanks: 11
Thanked 0 Times in 0 Posts
thanks, the size did it
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to add new input cell? dewan PHP 5 05-07-10 08:24 PM
Input type values DJH PHP 1 12-02-08 03:56 PM
input onclick blinn_shade JavaScript 1 02-04-08 08:02 AM
How come Account_Type and Organization cannot accept user input? toezaurus81 C/C++ 1 07-30-04 02:59 PM
How to prepopulate file input box? cgott42 PHP 0 06-09-04 03:22 AM


All times are GMT -5. The time now is 08:43 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.