Print Page | Close Window

Problem in handeling Safe Array in ASP

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=15357
Printed Date: 30 March 2026 at 3:20am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Problem in handeling Safe Array in ASP
Posted By: Waheed
Subject: Problem in handeling Safe Array in ASP
Date Posted: 04 June 2005 at 2:25am
Hi i have a problem in using safe array concept. I wrote the following code for getting the values from three text boxes.
 
<%
j = Request.BinaryRead(Request.TotalBytes)
 for i= 1 to Request.TotalBytes
       Response.Write midB(j,i,1)
 Next
%>
 
The Out put of this is :
 
Username=wa&FatherName=wasa&UserPassword=aw&button2=Submit+Query
 
But i want then out put like this :
 
1.  Username=wa
2.  FatherName=wasa
3.  UserPassword=aw
 
How could this be done.that i have the out put in the form of list.
KO



Replies:
Posted By: dj air
Date Posted: 04 June 2005 at 6:29am
you need to add the formatting for a list

<%
response.write ("<ol>")
j = Request.BinaryRead(Request.TotalBytes)
 for i= 1 to Request.TotalBytes
       Response.Write ("<li>" & midB(j,i,1) & "</li>")
 Next

response.werite ("</ol>")
%>


out put something like

1.  wa
2.  wasa
3.  aw

if you want to add the username,FatherName and UserPassword

do a case/if/elseif on i to set a temp veriable and write before the


" & midB(j,i,1) & "

ie,

" &  strTempVeriable & " " & midB(j,i,1) & "


Posted By: dj air
Date Posted: 05 June 2005 at 7:01am
looking at it , you dont need the 1 within the code.

but it should be ok apart from that i think.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net