-
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?
-
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.
-
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.