Vote count:
0
if($_SERVER['REQUEST_METHOD'] == 'POST') {
$image = $_FILES["image"]["name"];
echo "File: " . $image;
}
the echo is "File :" all the time
<form action="" method="post" id="formAddProperty">
<div id="propertyImage">
<label for="image">Upload image:</label>
<input type="file" name="image">
</div>
<input type="submit" value="Add Property" id="propertySubmit">
</form>
I'm running a local server via mamp, is than an issue? The purpose is to get file name than its extension (wich is not shown in this example).
asked 25 secs ago
Aucun commentaire:
Enregistrer un commentaire