Results 1 to 4 of 4

Thread: Basic Image Uploader

  1. #1
    Join Date
    Oct 2006

    Basic Image Uploader


    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
    Where I live, people get shot. I need to move.
    Read the 'Sticky' in the head of this forum.
    Sticky: How to: Upload images using PHP
    If life gives you a hard knock once in a while, your lucky. All I keep getting is a savage beating... everyday!
    AJAX! - Javascript Sha1 & MD5 - ASCII tables - Zend DevZone - My Space
    Stop Badware - Create "TEXT FILE" in Javascript - . - wikipedia on PHP -

  3. #3
    Join Date
    Aug 2004
    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).
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

  4. #4
    Join Date
    Oct 2006
    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