Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy need help, urgent!

    hello... just need help..... i had made one confirmation box... work successfully but the problem is when i clicked cancel, the data also had been deleted... i need when the cancel button, the data will be remain... so anyone can help me???
    Code:
    <script type="text/javascript">
    <!--
    function confirmation() {
    	var answer = confirm("Are you sure?")
    	if (answer){
    		alert("One record sucessfully deleted!")
    		window.location = "q_group1.php";//my page if click button yes and the data will be deleted
    	}
    	else
      {
     window.location = "query_grp1.php";// the page remain and data remain if click cancel button
      }
    
    }
    //-->
    </script>

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Please provide much more info (and more code). Are you trying to validate your form?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •