Example Dashboard Widget, Cancel not working

Ok, maybe I asked it too soon … took a look at it again and gave myself a slap for being so stupid. The widget-config.php is set to update when the page loads so every time it loaded the page it updated the ‘example_number’ option all you need to do is add if(isset($_POST[‘submit’])) to it.