session_start(); } if (isset($_SESSION)) { if (isset($_SESSION['current_user'])) { $user = $_SESSION['current_user']; } } // to see what is defined and included use this: // debug_print_backtrace(); $php_errormsg = null; $Plant = new Plant(); $Soil = new soil(); $Location = new Location(); $Weather = new weather(); if (isset($_GET['uid'])) { $Plant->setPlantUser($_GET['uid']); } else { $php_errormsg = "Missing UserID. "; } if (isset($_GET['PlantName'])) { $Plant->setPlantName($_GET['PlantName']); } else { $php_errormsg = $php_errormsg . "Missing Plant Name.<br> "; } if (isset($_GET['OnSite'])) { $Plant->setPlantEnteredOnSite($_GET['OnSite']); } else { $php_errormsg = $php_errormsg . "Missing On Site.<br> "; } if (isset($_GET['PlantNotes'])) { $Plant->setPlantNote($_GET['PlantNotes']);