View Full Version : showing a image while the form is being validated

03-17-2007, 03:58 PM

when a user will upload the image on my site i want to show an animated gif for indicating that the form is being validated

any of your idea will be surely appreciated


03-17-2007, 04:47 PM
This is a tough one, because there are a mixture of scripts that have
real status bars using Perl, Javascripting mixed together. Usually
important for large files like MP3, videos, etc. But with form validation,
it's really so fast, that your graphic would be a "fake" ... look-at-this type
of thing. By the time it's done validating, the next page is already loading.

If you're going to end up using Javascripting anyhow, I would go this
route instead http://www.massimocorner.com/validator/samples/index.htm

Validate instantly and directly on the form and don't even allow it to be
sent until it's filled-out properly. Then, within your PHP script, you can
further validate things (string parsing, etc) ... as you should do another
validation in case Javascripting is bypassed.

For most visitors, that would be intuitive and a nice-touch.

03-17-2007, 05:37 PM

just i want to display a small animated gif for indicating the user that uploading of image is in progress