Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » Problem with table and form


Problem with table and form

Reply
  #1 (permalink)  
Old 06-19-04, 07:33 AM
gharryh gharryh is offline
New Member
 
Join Date: Jun 2004
Location: Netherlands
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Problem with table and form

I am trying to make a form to update something. There are multiply buttons in the table. When i use the construction :

<table>
<tr><form .........>
<td>table header text
<?php
get data from table and put it in a row like this
?>
<td>name <td> data from database <td><input type=image .......>
repeat until database is empty

<form>
</table>

the table looks great but when i use the following construction

<table>
<tr>
<td>table header text
<?php
get data from table and put it in a row like this?>
<form .........><td>name <td> data from database <td><input type=image .......></form>
repeat until database is empty

</table>
the table expands every row making the table looking big.

Who can explain to me the reason why this happens

Thanks

Harry
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 08-05-04, 11:38 PM
AmberLR's Avatar
AmberLR AmberLR is offline
Newbie Coder
 
Join Date: Jul 2004
Location: Atlanta, GA USA
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Set the text to wrap after a certain number of characters.
__________________
~~ Amber ~~
http://amber.tangerinecs.com
http://www.ambersites.com

"Listen here young lady / All that matters is what makes you happy" -- Liz Phair
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 08-06-04, 12:47 AM
JasonMichael's Avatar
JasonMichael JasonMichael is offline
Newbie Coder
 
Join Date: Jul 2004
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
i'm not so sure its a good practice to put your form tags inside the table, unless you're opening and closing the form within a <TD>.

You might want to run an HTML validator on your HTML code, like the one at validator.w3.org.
__________________
www.JMRTechnet.com - PHP Tutorials and More!
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
Problem with date and form djavet PHP 3 05-02-04 01:37 AM
how to pass values from form to a table? vusubhashini JavaScript 1 03-31-04 02:30 AM
Problem with date in combobox. Periodically lose valu Danie Visual Basic 1 03-04-04 03:41 PM
form question delerium PHP 5 01-19-04 11:30 PM
Collecting html form data and sending it to a sql table crobinson ASP 3 01-04-04 10:16 PM


All times are GMT -5. The time now is 06:58 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.