This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > August 2004 > How do I remove rows if fields are empty





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How do I remove rows if fields are empty
Jerre

2004-08-26, 12:19 pm

I have a form with 10 text boxes for users to fill in. Most people are
not going to need to fill out all ten boxes. When the results of this
form are displayed in a table, the table rows containing those text
boxes which do not have data, still show up. Is there anyway I can
have rows with no data not show up?

Thanks

Jerre
Murray *TMM*

2004-08-26, 12:19 pm

Are you using server scripting to process the form's results? What
scripting model are you using?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Jerre" <jdengler@gfnit.com> wrote in message
news:bt1ni0trvi4hu8hvhjlcoqiiqokrq3mp11@4ax.com...
>I have a form with 10 text boxes for users to fill in. Most people are
> not going to need to fill out all ten boxes. When the results of this
> form are displayed in a table, the table rows containing those text
> boxes which do not have data, still show up. Is there anyway I can
> have rows with no data not show up?
>
> Thanks
>
> Jerre



Jerre

2004-08-30, 7:15 pm

ASP VBScript

On Tue, 24 Aug 2004 17:41:45 -0400, "Murray *TMM*"
<forums@HAHAgreat-web-sights.com> wrote:

>Are you using server scripting to process the form's results? What
>scripting model are you using?


Murray *TMM*

2004-08-30, 7:15 pm

Then you would just test the field's value before writing the row, no?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Jerre" <jdengler@gfnit.com> wrote in message
news:16p6j0hpjct0ggo5t3jjsececj1rhb6qbv@4ax.com...
> ASP VBScript
>
> On Tue, 24 Aug 2004 17:41:45 -0400, "Murray *TMM*"
> <forums@HAHAgreat-web-sights.com> wrote:
>
>



CarlGrint

2004-08-30, 7:15 pm

You can use an IF statement around the <tr></tr> if you wish to hide the entire
row if no answer is given.

example:

<If recordsetname("column") <> "" Then %>
<tr>
<td>Title</td>
<td>text</td>
</tr>
<% End If 'show row if details are given %>

in this example the row would appear if the field that feeds this column is
given an answer, obviously you would change recordsetname to the actual name of
your recordset, and column to the name of the column from the database table.

Originally posted by: Newsgroup User
I have a form with 10 text boxes for users to fill in. Most people are
not going to need to fill out all ten boxes. When the results of this
form are displayed in a table, the table rows containing those text
boxes which do not have data, still show up. Is there anyway I can
have rows with no data not show up?

Thanks

Jerre



Sponsored Links


Copyright 2003 - 2009 forum4designers.com  Software forum  Computer Hardware reviews