I can't use JavaScript, so unfortunately no history.back(). Using $ENV{'HTTP_REFERER'} starts the program from first question. Using href I can pass a query string, but then the data isn't going to be submitted. Any help will be greatly appreciated .