7 Replies Latest reply on Jul 30, 2008 8:09 AM by bregent

    validating forms

    001mad
      i can validate my form, but is there any way of validating a file field so that the end user attaches a photograph ?
      thanks
        • 1. Re: validating forms
          Level 7
          What are you using to upload the file?

          --
          ASP, SQL2005, DW8 VBScript, Visual Studio 2005, Visual Studio 2008
          "001mad" <webforumsuser@macromedia.com> wrote in message
          news:g2les2$fuv$1@forums.macromedia.com...
          >i can validate my form, but is there any way of validating a file field so
          >that the end user attaches a photograph ?
          > thanks


          • 2. Re: validating forms
            001mad Level 1
            hi - form has been created and uploaded from dreamweaver cs3 - appreciate any advice
            • 3. Re: validating forms
              Ben M Adobe Community Professional
              I think the question posed was asking if you are using a pre-made or custom file upload script and what language the form is in (ie: PHP, ASP).
              • 4. Re: validating forms
                Level 7
                Client-side? Check to see if the field is empty.
                Server-side? Check to see if the file has uploaded successfully, and if it
                had the proper extension.

                --
                Murray --- ICQ 71997575
                Adobe Community Expert
                (If you *MUST* email me, don't LAUGH when you do so!)
                ==================
                http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                ==================


                "SnakEyez02" <webforumsuser@macromedia.com> wrote in message
                news:g6kta1$a1g$1@forums.macromedia.com...
                >I think the question posed was asking if you are using a pre-made or custom
                >file upload script and what language the form is in (ie: PHP, ASP).

                • 5. Re: validating forms
                  001mad Level 1
                  hi - this is a standard .html file adapted from a hot dreamweaver mail to script
                  cheers
                  • 6. Re: validating forms
                    bregent Most Valuable Participant
                    What type of validation are you wanting to perform? If the user selects a file using the browse dialog, and you are using a server side uploading script with your form processing, then the file will be uploaded. What do you need to validate?
                    • 7. Re: validating forms
                      bregent Most Valuable Participant
                      >hi - this is a standard .html file adapted from a hot dreamweaver mail to script cheers

                      Huh? If you are uploading files, then you need to use a server side script - not a .html file. Why don't you start over again and explain what you already have and what you are trying to do.