Results 1 to 2 of 2

Thread: save a Form attched image in a folder

  1. #1
    Join Date
    Jul 2007
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default save a Form attched image in a folder

    ha frnz

    i have a form with some fields and a image attachment.
    i send the form details to my mail.
    now i want to save the attached image to a folder in my server. is it possible?(bocz i cant send the attached image to my mail)


    if anybody know the way how to save the form attached image in a folder.
    please help me.

  2. #2
    Join Date
    Aug 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    ///////////////////////
    $uploaddir = "Images/";
    if(is_uploaded_file($_FILES['name']['tmp_name']))
    {
    move_uploaded_file($_FILES['name']['tmp_name'],$uploaddir.'/'.$_FILES['name']['name']);
    }
    //////////////////////

    Here is a good tutorial on this subject:
    http://www.phpeasystep.com/phptu/1.html

Bookmarks

Posting Permissions

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