SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict heropage's Avatar
    Join Date
    May 2004
    Location
    canada
    Posts
    238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to print all the data of an array?

    In PHP, we can use print_r($HTTP_POST_VARS) to show all the info submitted by form.
    IN asp, how can we do that?

  2. #2
    SitePoint Addict danfran's Avatar
    Join Date
    Jan 2005
    Location
    New York City
    Posts
    244
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here's a simple function..

    Code:
    Sub FormVars()
    	
    	dim key
    	
    	Response.Write "<table border=1 align=center>" & vbcrlf
    	
    	for each key in Request.Form
    	
    		Response.Write "<tr><td align=right>" & key & " = </td><td>" & Request.Form(key) & "&nbsp;</td></tr>" & vbcrlf
    	next
    	
    	Response.Write "</table>"
    	
    End Sub

  3. #3
    SitePoint Wizard
    Join Date
    Nov 2004
    Location
    Nelson BC
    Posts
    2,310
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Response.Write Request.Form will give you the raw form data.

  4. #4
    SitePoint Addict heropage's Avatar
    Join Date
    May 2004
    Location
    canada
    Posts
    238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •