This topic is locked

Open another page after an event..

6/18/2007 3:50:45 PM
PHPRunner General questions
M
michaelmac author

Hey Everyone
I hope everyone had a great weekend with their Dad this Father's day weekend.
I have a problem that I can not see to solve. I complete a mass deletion, then I want to close the page I am on, or open another one in my browser and execute a "locate: abcd_add.php" exit(); I do not need to pass anything, I jsut do not want my user able to hit the back button, so I decided to send them to another window in the browser. Any ideas?
Thanks
Mike
here is my snippet after my delete event::
if(@$_POST["a"]=="order"){

//** Redirect to another page ****

?><script type="text/javascript">

if (!confirm("I have read the Resales Information, and I agree all the terms"))

{

alert("You have not accepted the licence information, good bye");

<!--

window.location = "purchaseOrders_add.php";

//-->

}

</script>

<?php

}
one other thing.. I seem to have javascript reversed.. if I say I accept.. my next screen does not show, if I say cancel.... then it tries to load the PO_add page...

Sergey Kornilov admin 6/19/2007

You cannot call a javascript function like confirm from the event and return control back to the event.