Results 1 to 3 of 3

Thread: Response.Redirect

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2000
    Location
    New Orleans, LA
    Posts
    37
    How do i forward a user (in vbscript) to another page while maintaining all the post data from the previous page?


    im doing a site that needs to pipe post data to authorize.net for credit card authorization, but only after my system checks if they have entered a valid username, password, and other such stuff. so basically it s like this:


    fill out form > check form data then forward > authorize.net

    i need to beable to take the info filled out on the form and pass it along in POST to authorize.net. how would i do this?

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Just submit the FORM. In the FORM tag's Action attribute, redirect to the new page.

    Unless, you are submitting to a page that checks, in which case, one solution would be to write the values to a database with a sequence number and pass the sequence number from the checking page to the new page via querystring. Then in the new page, use the sequence number to retrieve the values from the database. You obviously would not want the actual data in the querystring (I would **** a brick if I saw my CC# in a querystring).

    Another option would be to encrypt the values and then put them into the querystring. In the new page decrypt them.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  3. #3
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    If it's just username/password, you can check that easily when the page first loads unless they are entering it all on the same page and if so...

    You could also use hidden textboxes on your 2nd page and populate them from the posted data on the first page. Then just add a window_onload function that causes a form.submit(). Basically duplicate the structure of your original form, but do it with hidden elements on the 2nd page.

    That way you can stop the processing if the business rules are not all followed.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

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