( ! ) Notice: Undeunidentified index: file in C:\wamp\www\upload.php on line 2
Posted by: Kobus (---.telkomadsl.co.za)
Date: October 31, 2014 01:43PM

Hello to all out there in the internet cosmos.
Here is my code.
<?php
$name = $_FILES['file']['name'];
$size = $_FILES['file']['size'];
$type = $_FILES['file']['type'];

?>


<html>
<form action="upload.php" method="POST" enctype="multipart/form-data">
Select a File to Upload <input type="file" name="file"><br><br>
<input type="submit" value="Submit">

</form>
</html>
******************************* Please tel me why am I getting an error on line 2,3, and 4?
Much appreciated,
Blessings

Options: ReplyQuote
Re: ( ! ) Notice: Undeunidentified index: file in C:\wamp\www\upload.php on line 2
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: October 31, 2014 02:03PM

Please tell us which lines are lines 2,3 & 4

Also this is not really the place to ask for PHP coding help. Try StackOverflow

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.