Ejemplo n.º 1
0
    $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']);
}
$LocationCount = 0;
if (isset($_GET['Longitude'])) {
    $LocationCount++;
    $Location->setLongitude($_GET['Longitude']);
}
if (isset($_GET['Latitude'])) {
    $LocationCount++;
    $Location->setLatitude($_GET['Latitude']);
}
if (isset($_GET['GPS'])) {
    $LocationCount++;
    $Location->setGPS($_GET['GPS']);
}
$locationError = false;