prevent back button
- Started
- Last post
- 6 Responses
- ldww
nice tricks to prevent people from using the backbutton and the credit card being billed again?
(the page before thankyou is where the credit card is billed, so i was hoping to prevent it from being loaded)
- fusionpixel0
window.close()
- ********0
explain.more()
- ldww0
order-step4.php:
credit card informationg get passed to this page, and it contacts credit card place to authenticate.... if sucess forward to thankyou.phpthankyou.php
if a user hits back, it hits back arrorow(to order-step4.php) it charges card againi tried putting a database call at the top of order-step4 to check order status or current order and to not charge again, but its not loading that, i am guessing cause its cached.
also tried doing a pragma no-cache.
- fugged0
easy hack... but it works.
have an intermediate step between order-step4 and thankyou that redirects via javascript to the thankyou page.
window.location.href="thankyou.p...
that will back the back button go to the redirect which will auto forward to the thank you.
like I said it's a hack, but it should work.
- fugged0
my grammar is rad.
- mg330
doNot.beATypicalInterwebUser()
else
slamyourhandinadoor