This code of mine is to upload videos and same it in the database .I am getting only 1 notice that is "Undefined index: video "
Notice: Undefined index: video in C:\wamp\www\SSP Final project\php\upload.php on line 5
Notice: Undefined index: video in C:\wamp\www\SSP Final project\php\upload.php on line 13
Notice: Undefined index: text in C:\wamp\www\SSP Final project\php\upload.php on line 14
Notice: Undefined index: video in C:\wamp\www\SSP Final project\php\upload.php on line 20
hear is the form
<form method="POST" action="../../php/upload.php" enctype='multipart/form-data'>
<table class="booking_table" cellpadding="40" style="margin:auto;margin-top:10px;">
<tr>
<td>
<input type="hidden" name="size" value="90000000000">
<input type="file" name="video">
</td>
</tr>
<tr>
<td>
<textarea name="text" cols="40" rows="4" placeholder="Say something about Yout band......"></textarea>
</td>
</tr>
<tr>
<td>
<input type="submit" name="upload" value="Upload ">
</td>
</tr>
</table>
</form>
and hear is the php
var_dump($_FILES);
//the parth to store the upload video
$target= "../videos/".basename($_FILES['video']['name']);
//conect to database
$db = mysqli_connect('localhost', 'root', '', 'sspfinal');
//get all the submited data from the form
$image = $_FILES['video']['name'];
$txt = $_POST['text'];
$sql="INSERT INTO band(video,text) values ('$image','$txt')";
mysqli_query($db,$sql);//store the submited data into the database table : bands
//move the upload image to the folder
if(move_uploaded_file($_FILES['video']['name'].$target)){
$msg="Image Uploaded Successfully";
}
else{
$msg="There was a problem to upload";
}
help me to find this fault