I have a form where i have an input type as below:
topic image: <input type="file" name="pic" accept="image/*">
<input type="submit" name="submit" value="submit">
After that, i saved what i got in a variable:
$image=$_POST['pic'];
Then, i used the move_uploaded_file function but it is not working, here is the code:
if(isset($_POST['submit']))
{
move_uploaded_file($image,'images/'.$image);
}
So, i want the file to be saved at a folder i want called "images" but it doesn't work. Could someone help me and explain me why?