Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asp problems with redirecting

Status
Not open for further replies.

bitsnz

Programmer
Mar 12, 2004
4
NZ
hi there.
I have an asp file (page) which allows users to enter in data. From here they click a button and are directed to a pay site (ogone). Before this redirection occurs i capture the data in an xml file. I use the 'action' method to direct the user to the ogone pay site and 'onSubmit' to validate the users input data.

My problem is that i cant get the data to save to the xml file. Ive got code to do this and to test that this code worked i changed the redirection of the ogone site to the asp file containing the code. The data was saved into the appropriate xml file, hence code works.

The code is a simple function between <% %> tags.

I tried to redirect from here to the ogone paysite but instead of seeing the appropriate screen, it came back with a 'payment details invalid' string and nothing else.

Using the default 'action' which directs the user to the paysite i get the correct site with all the bits needed.

I tried something else as well, I put the function code into the asp file itself rather than in a separate asp file but i cant figure out how to validate the user info (which is written in javascript) and then call the function to save the data, then redirect the user to the paysite.

Anybody know???

I'm desperate. Any help would be most appreciated.
 
validate the data server-side, otherwise when someone without javascript comes along they could submit invalid information, or worse, potentially crash your server.



<marc> i wonder what will happen if i press this...[ul][li]please tell us if our suggestion has helped[/li][li]need some help? faq581-3339[/li][/ul]
 
Not sure exactly what you are doing but it sounds like you are doing a Response.Redirect after the form gets posted. Response.Redirect instructs the browser to do an HTTP GET. This may explain why your pay site is not getting any data from the post. You have to post directly to the pay site.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top