asp upload page - database

Discussion in 'C#' started by drago85, Jun 9, 2008.

  1. #1
    i'm at the beginning with ASP,
    i have an asp page with a form, that sends back to the same page in the action field, with the post method

    the form contains a choice of amounts to subtract from an account on a database
    once a press the enter button everything is ok, the amount is correctly decreased from the account
    the problem is once the transaction is over, and the correct amout subtracted, is i press refresh/F5 the account is again decreased of the same amount

    Es 300 ==> subtract 50 ==> 250 ==> refresh ==> subtract other 50 = 200

    Same thing happens if I deposit.... if i deposit 500 ==> enter ==> +500 ==> refresh ==>1000
    How can i solve the problem?
    i'd like to avoid to put an intermediate page with a redirect

    i am writing with javascript,
    thanks a milion to who can help me,

    might be a simple stupid thing but it is driving me crazy :(, thx :confused::confused:
     
    drago85, Jun 9, 2008 IP
  2. iconico

    iconico Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What about just redirecting to a results page, that way if they refresh then it'll just show the results.
     
    iconico, Jun 10, 2008 IP