Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Feb 2004
    Location
    Malaysia
    Posts
    175
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy problem with uploading image

    hi all,
    i have a problem in uploading my images..i dunno how to explain it so i have attached the two pages that are involved. serious help is needed as it's urgent...i know the following quote is just a notice and it can be shut out...but these notices are related to the error(though not written error but i am not getting what i am suppose to get).thank you thank you.i am going nutz as i dun see any prob with it
    Attached Files Attached Files
    Warm Regards,
    Mivec

  • #2
    Regular Coder
    Join Date
    Feb 2004
    Location
    Malaysia
    Posts
    175
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy

    sorry, i forgot to post the notice.here it is :

    Notice: Undefined index: file in c:\program files\apache group\apache\htdocs\ewedding\uploadagain.php on line 401

    Notice: Undefined index: file in c:\program files\apache group\apache\htdocs\ewedding\uploadagain.php on line 401

    Notice: Undefined index: file in c:\program files\apache group\apache\htdocs\ewedding\uploadagain.php on line 401

    Notice: Undefined variable: done in c:\program files\apache group\apache\htdocs\ewedding\uploadagain.php on line 409
    Warm Regards,
    Mivec

  • #3
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,108
    Thanks
    11
    Thanked 101 Times in 99 Posts
    without looking too far I notice that you have not included the enctype to your form

    ...

    <form name="frmUpload" method="post" enctype="multipart/form-data" action="uploadAgain.php?code=done">

    without such your files are never uploaded and $_FILES array will not be fully populated
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)


  •  

    Posting Permissions

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