www.webdeveloper.com
Results 1 to 1 of 1

Thread: File Upload returning undefined index

  1. #1
    Join Date
    Jan 2006
    Posts
    102

    File Upload returning undefined index

    Hi all--I'm totally stuck on this one. I've got a small CMS that needs file uploads. I know the code and it's working fine elsewhere, but I keep getting errors on this one.

    PHP Code:
            <tr id='doc_<?=$id?>' style="background:<?=$bgcolor?>;display:none;">
                <td></td>
              <td style="border-top:1px solid #fff">PDF plan</td>
                <td colspan="3" style="border-top:1px solid #fff" id="file_<?=$id?>"><input type="file" name="photo_<?=$id?>" id="photo_<?=$id?>" /></td>
              <td id='save_<?=$id?>' class='edit' align="right"></td>
            </tr>
    I have a button that calls a piece of javascript to reveal the upload field and turn text into input fields. I'm getting the following type error:

    Notice: Undefined index: photo_459 in C:\Inetpub\wwwroot\ogilvy\admin\directives\lots.php on line 15



    [screencap] http://img.skitch.com/20080528-1d2ut...4fj1hw178n.jpg
    Last edited by calliepeck; 05-28-2008 at 02:59 PM.

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