The other way you asked about, where the confirmation redirects back to the form, is also really easy. All you'd have to do in that case is put a header on the confirmation page to redirect back to the form page. You can do this with the following script:
# this will have to be your first line of output...
print "Location: http://www.your-website.com/yourpage.html\n\n";