|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 />
|
|
#2
|
|||
|
|||
|
<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 />
|
![]() |
| Viewing: ASP Free Forums > Programming > ASP Development > hiding null or empty fields |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|