beautiful, that is what I wanted, but now....in that switch statement, the $_GET[ ] call that you used, can I put the page that I was just at as an argument? for example, I'm at Table A's page (tableA.php), then I click the add link or button on Table A's page...and it takes me to this add.php page that has all the switch statements on it, and since it came from Table A's page, it'll do that case for Table A? Basically, can I pass the page that called add.php as an argument for the switch statement and then generate the form accordingly? If so, then what, if anything would be different in this code?