Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Problem in handeling Safe Array in ASP
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem in handeling Safe Array in ASP

 Post Reply Post Reply
Author
Waheed View Drop Down
Newbie
Newbie
Avatar

Joined: 04 June 2005
Location: Pakistan
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Waheed Quote  Post ReplyReply Direct Link To This Post Topic: Problem in handeling Safe Array in ASP
    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
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post 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) & "
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.