ASP Help

Sharky Forums


Results 1 to 5 of 5

Thread: ASP Help

  1. #1
    Reef Shark
    Join Date
    Jul 2002
    Location
    Indiana
    Posts
    491

    ASP Help

    Im doing a little something here and I have 2 asp pages where one posts to another. You enter some information and its supposed to post to the 2nd page but in an array. Does anyone know how to do that. Im semi familari with arrays but not sure how to pull the info from the 1st page into the 2nd with an array but I can do it with a response.write but i need to make it happen in an array.
    Smoke em If you Got em!

  2. #2
    Thread Killer Delphi00's Avatar
    Join Date
    Jun 2003
    Location
    Bay Area, CA
    Posts
    3,327
    checked google?

    I felt lucky so: http://www.bytesworth.com/learn/asp00006.asp
    Rig:
    P4 2.4C @ 3.0Ghz | Abit IC7 | Thermalright SLK 947U + Enermax 90mm | Scythe Ultra Kaze 120mm | Corsair 3GB | PowerColor HD3850 AGP | Antec SLK3700AMB | Enermax Whisper II 535W | Hercules Fortissimo III 7.1 | Samsung 931B | Logitech Z-2300 | WinXP Pro

  3. #3
    Reef Shark
    Join Date
    Jul 2002
    Location
    Indiana
    Posts
    491
    Already did a google search and I have seen that page. Doesnt help with posting from one asp page to another into an array.
    Smoke em If you Got em!

  4. #4
    Hammerhead Shark
    Join Date
    Aug 2001
    Posts
    2,240
    Is it an array with many items?

    I'd be tempted to run a loop to put each item into a hidden field or a cookie. then run a similar of page2 to retire. Not a great method, but ok if you have a small array.

    I think a much better way to approach this is to look at how you got the array contents in the first place - meaning, where does the data come from? If you're picking up bits from different fields in page1 then why not pass on each field seperately and pick them up in page2. Does that make sense?
    | AMD64 3000+ (skt 754)| 256MB Sapphire Radeon 9600XT | MSI K8N Neo Platinum | 450W Antec SP-450PGB PSU |Corsair 1024MB CMX1024-3200C2PT + TwinMOS PC3200 512MB CL2.5 | 80GB WD SE HDD (8MB Cache) | 180GB IBM/Hitachi 180GXP HDD | NEC 2500A DVR+-RW | Creative FPS1000 Speakers |

  5. #5
    Catfish gameboy1234's Avatar
    Join Date
    Aug 2002
    Posts
    238
    Maybe I'm wrong here but I thought there were two ways of passing data to an server side script.

    One is GET, where the info is passed as part of the url. http://isp.net/yourpage.asp?a=1&b=2 where the a and b are the info being passed.

    The seond is POST, where the information is passed as the result of a form input.
    <form action="secondscript.asp" method=post>
    <input type="text" name="a">
    <input type="text" name="b">
    <input type="submit">
    </form>


    You pick up these form values with the server side Request.Form("a") or "b" object.

    And that's it. No arrays, just collections. If you want an array, you may have to load it into a form yourself, then pass it, then extract it from the form and put it back into an array.

    What are you trying to do anyway?

Posting Permissions

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