Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2007
    Thanked 0 Times in 0 Posts

    Testimonial with Picture Upload Form

    I want to create a webpage containing a form with the following fields:
    * Fields for entering user details (Name, email address, location)
    * Textbox for entering a testimonial
    * Field for submitting a picture (from user's computer)

    Once the user clicks the Submit button, details + picture will either be sent to my email address, or to a mySQL database (whichever is easier for you to write. Any option is good), and user will land on a different page where I will put some thank-you text.

    These are the basics, and would help me a lot. If you want to go over the top in helping me, also show how to limit sent files to pictures only (so users can't send me malicious code) and how to block multiple submits (when user re-clicks submit button by mistake).

    Come to think of it: Is this better done client-side (javascript) or server-side (PHP)?

    Thanks guys!

  2. #2
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Bradford, UK
    Thanked 68 Times in 67 Posts
    This is a help forum, not a please write my script for me forum.

    There are hundreds of examples of what you want to do online.
    I'm guessing you know nothing at all about web dev or you're being lazy. Writing a form and capturing its data is the most basic of tasks. Its like web dev 101.

    File uploading is a little more difficult but not by much. Read the manual - its very good and explains everything you want to do http://www.php.net/manual/en/features.file-upload.php


Posting Permissions

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