Form request help

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2006
Posts: 12
Reputation: bodikon is an unknown quantity at this point 
Solved Threads: 0
bodikon bodikon is offline Offline
Newbie Poster

Form request help

 
0
  #1
Jun 27th, 2006
  1. sql = "SELECT * FROM tblcsvdump"
  2. set rs = connection.execute(sql)
  3. records = rs.Fields.Count
  4.  
  5. dim heading(100)
  6. dim pulled(100)
  7. dim i
  8. dim count
  9. dim VAL
  10. dim VEL
  11. i=0
  12. count = 0
  13. for i=0 to records
  14. heading(count) = rs.Fields(count)
  15. response.write(heading(count))
  16. header = heading(count)
  17. '**** THIS ROW HAS ERROR
  18. pulled(count) = Request.Form(header)
  19. count=count+1
  20. next
  21.  

The error i receive is....
The function expects a string as input.


What am i doing wrong guys?
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Form request help

 
0
  #2
Jun 27th, 2006
I don't see that any of your variables are typed. Is this VB.NET? Is it loosely typed?
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 483
Reputation: campkev is an unknown quantity at this point 
Solved Threads: 19
campkev campkev is offline Offline
Posting Pro in Training

Re: Form request help

 
0
  #3
Jun 27th, 2006
this is very odd code, so let's start by cleaning it up a little
  1. sql = "SELECT * FROM tblcsvdump"
  2. set rs = connection.execute(sql)
  3. records = rs.Fields.Count
  4.  
  5. dim heading(100)
  6. dim pulled(100)
  7. dim i
  8. dim VAL
  9. dim VEL
  10.  
  11.  
  12. for i=0 to records
  13. heading(i) = rs.Fields(i)
  14. response.write(heading(i))
  15. header = heading(i)
  16. '**** THIS ROW HAS ERROR
  17. pulled(i) = Request.Form(header)
  18. next
  19.  

now, what line has error?
header = heading(i)
or
pulled(i) = Request.Form(header)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC