if (isset($_POST['title']) || isset($_POST['title2'])) { //preserve stuff $smarty->assign('title', stripslashes($_POST['title'])); $smarty->assign('title2', stripslashes($_POST['title2'])); $smarty->assign('comment', stripslashes($_POST['comment'])); $smarty->assign('comment2', stripslashes($_POST['comment2'])); $smarty->assign('imagetaken', stripslashes($_POST['imagetaken'])); $smarty->assign('imageclass', stripslashes($_POST['imageclass'])); $smarty->assign('user_status', stripslashes($_POST['user_status'])); } $step = 2; } elseif (isset($_POST['goback'])) { $step = 1; } elseif (isset($_POST['transfer_id'])) { //preserve the upload id if ($uploadmanager->validUploadId($_POST['transfer_id'])) { $smarty->assign('upload_id', $_POST['transfer_id']); $uploadmanager->setUploadId($_POST['transfer_id']); $uploadmanager->reReadExifFile(); //we ok to continue if (isset($_POST['photographer_gridref'])) { $step = 3; } else { $step = 2; } } else { $step = 1; } } elseif (isset($_POST['jpeg_url'])) { //Submit Step 2.. $step = 2;