Here is an example of the code used:
The script uses an IF/ELSE statement to determine what to do. In this example, if the user clicks OK they are taken to an entry page. If they click Cancel they are taken to a different page.
You can change the code to do whatever you want for each option.