Go to previous page (not after form submit)
Create your link this way:

$link = l('Link title', 'your/menu/path', array('query' =&gt; drupal_get_destination));


This will add the destination argument to the link URL.

Then, at the end of your page callback, simply call:

drupal_goto();