0
down vote
favorite
I want to execute an SQL on my php server based on a user confirmation prompted not by a button but by another sql result. So I tried to do something like this:
But it doesn't bring the control back to the index.php in round trip. Instead it just continues with the following php statements.Code:if ($result == 1) { ?> <script type="text/javascript"> if (confirm=("want to continue?")) { var vform; vform.FORM = JumpForm; vform.VAR.value = 'Y'; vform.action = "index.php" //self page } </script> <?php } //JumpForm defined somewhere here
How should I fix it?


Reply With Quote

Bookmarks