as far as testing if it's an empty entry, try the following
if(empty($newphylum)) {
//do something with new phylum
} else {
//do something with selected phylum
}
as far as passing information between the two forms, i wouldn't personally use sessions. i'd take advantage of the $_POST (avail in PHP4.1.x or higher) variables. you can traverse all the different variables posted to your script using something like the following
while(list($key,$val) = each($array)) {
echo "$key -> $val";
}
so you could take that general idea and turn all the passed variables into hidden variables of form 2, which would all then re-post themselves to your 3rd (and final?) page....so something like this...
$hiddenList = "";
while(list($key,$val) = each($_POST)) {
$hiddenList .= "<input type=\"hidden\" name=\"$key\" value=\"$val\">";
}
do note you can run into troubles with this method when quotes are entered 🙁
hope that helped a bit...good luck 🙂