chiro-canto/public/upload/submitlocation.php

15 lines
366 B
PHP

<?php
session_start();
$_SESSION['error_msg'] = "";
if (isset($_POST['latlng'])) {
$_SESSION['observation']['latlng'] = $_POST['latlng'];
} else {
$_SESSION['error_msg'].= "Incorrect coordinates, please try again.";
}
if ($_SESSION['error_msg'] == "") {
header('Location: '.'index.php?step=metadata');
} else {
header('Location: '.'index.php?step=location');
}