Cant you just do something like this:
// file 1
<form name="form3" method="get" action="insert_2RFS.php">
// file 2 - insert_2RFS.php
if (isset($_REQUEST['choice']))
{
$opt = $_REQUEST['choice'];
// use a if or switch here
if ($opt == ?)
{
// php code here for option 1
}
else
{
// php code here for option 2
}
// or switch
switch ($opt == ?)
{
case 1:
// php code here for option 1
break;
case 2:
// php code here for option 2
break;
case N:
// code
break;
default:
// code
}
}
Then the you can have several different outputs/layouts in one file.
Edit: took too long to write my post, so Houdini beat me to an answer :rolleyes: