test ville

This commit is contained in:
Theo Mougnibas 2023-09-03 12:32:01 +02:00
parent 6f847e9df6
commit 81d8990b31

View file

@ -48,6 +48,8 @@ if(isset($_POST['add_epreuve'])){
$upload_state = 0;
}
echo $target_file;
$file_name = "";
switch($upload_state){
case 1:
@ -57,6 +59,7 @@ if(isset($_POST['add_epreuve'])){
break;
case 2:
move_uploaded_file($_FILES["photo"]["tmp_name"],$target_file);
$file_name = htmlspecialchars($_FILES["photo"]["name"]);
break;
case 0: