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. #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    15,060
    Thanks
    165
    Thanked 2,250 Times in 2,237 Posts
    Please provide much more info (and more code). Are you trying to validate your form?


 

Posting Permissions

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