SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: forms and ASP

  1. #1
    SitePoint Addict djh's Avatar
    Join Date
    Apr 2000
    Location
    Long Beach, CA
    Posts
    333
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm trying to return all the values of a form onto a page with only few lines of code.

    I'm trying:

    <% For each key in request.form
    if key <> "" then
    response.write key & "<br>"
    end if
    Next
    %>

    But it's not returning the key value. How do I do that???

    THANKS!

  2. #2
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Code:
    <% 
    For each key in request.form 
      if request.form(key) <> "" then 
        response.write request.form(key) & "<br>" 
      end if 
    Next 
    %>
    Wayne Luke
    ------------



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
  •