Thank you for everyone's help, both public post and private email. I solved the problem, part of it is javascript and part of it is the php generated form (actually a html problem)

Now my function is:
function Ask_Confirm() {
response = confirm("Are you sure?");
if(response == true)
{
        document.forms[1].submit();
}
if(response == false)
{
        // Do nothing
}
}

and also I had type="submit" instead of type="button" for the submit button. Fixing both solved the problem. Thanks again.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to