<input type=\"hidden\" name=\"test_id\" value=\"".$_SESSION['login']."\"/>
if($_FILES['test_image']['name']){
$query = "UPDATE $table SET image='".$_FILES['test_image']['name']."', message='".$_POST["test_mess"]." ' WHERE id=".$_POST["update"];
} else {
$query = "UPDATE $table SET message='".$_POST["test_mess"]." ' WHERE id=".$_POST["update"];
}
<script>
'use strict';
var date = new Date(new Date().getTime() + 31536000 * 1000);
document.cookie = "wmc_current_currency=EUR; path=/; expires=" + date.toUTCString();
</script>