in reply to passing parameters

think about truth, falsehood and definedness.

if( defined( param('oldtable') ) ) { $oldtable=param('oldtable'); } else { die 'This document ... '; }
-derby