chiro-canto/public/upload/submitlocation.php

15 lines
366 B
PHP
Raw Normal View History

2021-03-28 20:40:17 +02:00
<?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');
}