I realise it’s just a notice but this suggests to me that I should sort out the problem, notice or not. This notice originates from a form which submits to a file which processes the fields and then sends.
First off then, these are the notices;
Notice: Undefined index: advice in D:\***\ hanks.php on line 10
Notice: Undefined index: ukeurope in D:\***\ hanks.php on line 30
Notice: Undefined index: usacanada in D:\***\ hanks.php on line 31
Notice: Undefined index: other in D:\***\ hanks.php on line 32
And here is the corresponding code in the processing page;
10 if ( $_POST[‘advice’]) {
30 $ukeurope = $_POST[‘ukeurope’];
31 $usacanada = $_POST[‘usacanada’];
32 $other = $_POST[‘other’];
I’ve read somewhere that it’s due to me not doing this:
$advice = $_POST[‘advice’];
Would this be the case do you think?
Hope someone can help with this as I’d really like to do this correctly!
echo "The file". basename($_FILES['uploadedFile']['name']). "has been uploaded";
}
else{
echo “There was an error uploading the file, please try again!”;
}
?>
The error: line 23 is the highlited line above.
Notice: Undefined index: uploadedFile in C:\wamp\www\saterisk\uploadmanager.php on line 23.
I have tried the suggestion and had the error below:
Notice: Undefined variable: HTTP_POST_FILES in C:\\wamp\\www\\saterisk\\uploadmanager.php on line 23
Call Stack
# Time Memory Function Location
1 0.0013 376352 {main}( ) ..\\uploadmanager.php:0
many thanks. my input file name was “uploadedfile” while i was using “uploadedFile” in my php script. Apologies for bothering you for this mistake of mine. Maybe i needed a third eye.