ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old March 6th, 2000, 03:11 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
hiding null or empty fields

<i><b>Originally posted by : Dave Zehnder (diziDOG@aol.com)</b></i><br /><br />I am trying to display some form fields, but I only want to display fields with actual data in them. Using either post or get method, I can either pass all or none, but not just items with data. here is one of my attempts: any suggestions? <br /><br />Sub delete(str)<br />If IsEmpty(str) Then<br />str = request.querystring("item")<br />str.remove<br />End If<br /><br />end Sub<br /><br />function showorder'print only items that are not null<br /><br /><br />response.write("<table>")<br />For each item in request.querystring<br />delete("item")<br />response.write("<tr><td>"& item&" "& request.querystring(item) & "</td></tr>")<br />next <br />response.write("</table>")<br /><br />end function<br />

Reply With Quote
  #2  
Old March 9th, 2000, 03:52 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Bill (bill@gamespy.com)</b></i><br /><br />function showorder'print only items that are not null<br /><br />response.write("<table>")<br />For each item in request.querystring<br /> If Not isEmpty(Request(item)) Then<br /> response.write("<tr><td>"& item&" "& request.querystring(item) & "</td></tr>")<br /> End If<br />next <br />response.write("</table>")<br /><br />end function<br /><br />------------<br />Dave Zehnder at 3/6/2000 1:11:32 PM<br /><br /><br />I am trying to display some form fields, but I only want to display fields with actual data in them. Using either post or get method, I can either pass all or none, but not just items with data. here is one of my attempts: any suggestions? <br /><br />Sub delete(str)<br />If IsEmpty(str) Then<br />str = request.querystring("item")<br />str.remove<br />End If<br /><br />end Sub<br /><br />function showorder'print only items that are not null<br /><br /><br />response.write("<table>")<br />For each item in request.querystring<br />delete("item")<br />response.write("<tr><td>"& item&" *"& request.querystring(item) & "</td></tr>")<br />next <br />response.write("</table>")<br /><br />end function<br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > hiding null or empty fields


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT