www.webdeveloper.com
Results 1 to 2 of 2

Thread: Trying to upload a file !!

  1. #1
    Join Date
    Aug 2006
    Posts
    162

    Trying to upload a file !!

    Hi can any one pls help me?

    I get the following error message:
    Notice: Undefined index: leer in C:\Xitami\webpages\4G\Registercv.php on line 53

    This happens when I try to upload a file to the server.

    My code of the form that I am uploading from looks like this.
    Code:
    <b>Upload CV:</b>
    <input type="file" name="leer" value="" size=50">
    <br><br>
    and the code in my php backend looks like this (line 53):
    Code:
    $size = $_FILES['leer']['size'];
    What am I missing here?

  2. #2
    Join Date
    Nov 2004
    Location
    Canada
    Posts
    379
    Do you have form enctype="multipart/form-data"?
    The beauty of code is in its simplicity.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles