Hello,can some one please help with this piece of code..

Discussion in 'PHP' started by links121, Jan 4, 2013.

  1. #1
    Hi

    Thanks for looking.

    I'm trying to upload images to my site,but image not uploading and i'm getting this code relating to this line;



    move_uploaded_file($HTTP_POST_FILES[1]['tmp_name'], "$svr_rootscript/product_images/tmp/$_POST[IMAGENAME].jpg");
    PHP:
    thanks for your help..
     
    links121, Jan 4, 2013 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    what error are you getting? can't use my glass boll to see what problems you are facing!

    first line after <?php should be error_reporting(E_ALL);
     
    EricBruggema, Jan 4, 2013 IP
  3. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #3
    $_POST[IMAGENAME] or $_POST['IMAGENAME']?
     
    Rukbat, Jan 5, 2013 IP