dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: Basic Image Uploader

  1. #1
    Join Date
    Oct 2006
    Posts
    2

    Basic Image Uploader

    Hello,

    I am very new to PHP, but I want to make a page on my site that will allow visitors to upload images.

    The only thing is, I want the images emailed directly to me and not posted on the site right away.

    I cannot seem to find a code for this. Is this possible? I just don't want to risk inappropriate photos being uploaded. (jpg & gif photos only)

    I also would like to have it so when people sumbit the photo, they have a box to write who the photo was taken by.

    Any help would be greatly appreciated. Thank you

  2. #2
    Join Date
    Feb 2006
    Location
    Where I live, people get shot. I need to move.
    Posts
    634
    Read the 'Sticky' in the head of this forum.
    Sticky: How to: Upload images using PHP

  3. #3
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,614
    I would suggest uploading it to a password-protected directory, and then just have the script send you a short email with a link to the image. Then if you approve it, you can move it to a public directory (or delete it if you don't).
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  4. #4
    Join Date
    Oct 2006
    Posts
    2
    I did read the sticky before posting. I was just a bit confused with the code. Do the images automaticly go onto the web site (like create a gallery) or are they just saved in the directory?

    Also, how do I add in a box where people can write who the image is from? So that when I add an image to the gallery, I can credit the person who took it.
    This would be hard if the image just goes directly into the directory.

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