Results 1 to 4 of 4

Thread: General help with ASP

  1. #1

    Thread Starter
    Member
    Join Date
    May 2000
    Posts
    38
    I am submitting data to an asp page throught the URL...

    But for some reason its not working..

    I have an asp page that takes two fields as input and returns some data. How can i submit those two fields using just the Address bar?

    And is there any special code i need to use in the asp to read that data from the bar?

    Thanks

  2. #2
    ines
    Guest
    why don't you put those two text fields in a form, post it and than retrieve the values 'request.form'?

  3. #3
    Addicted Member Active's Avatar
    Join Date
    Jan 2001
    Location
    Lat: 13° 4' 46" N, Long: 80° 15' 20" E
    Posts
    209
    The form tag should be like this..

    <form action="whatever.asp" method="get">
    <input type="text" name="age" value="">
    </form>

    Then in whatever.asp to get back the age..
    use

    age = request.querystring("age")
    If you can't beat your computer at chess, try kickboxing !!!
    [Download Tag Editing Tools.]

  4. #4
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    And then to manipulate the data using just the address use something like this (Active's form would generate this also).

    You could then change the 78 to whatever and hit enter for testing, without having to flip back and forth between the form page and the results page. More values would be appended like this:
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

Posting Permissions

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



Click Here to Expand Forum to Full Width