I have following code
echo '<script type="text/javascript">confirm("Are You Ready To Restore ?");</script>';
Now a confirm box will appears as follows:
So when user click on ok the process will continue otherwise it will stop further processing as it cancel it. I want to apply if condition on OK and cancel button . How to save this echo result in variable so that i can apply if condition on it .