Page 1 of 1

Form validation with upload

Posted: Mon Dec 27, 2004 5:06 pm
by therat
I am using a form to collect some info and then upload two files, the info is then submitted to the DB and the files uploaded.
How would I go about validating the fields of the form but, not entering the info to the DB or uploading the files until all compulsory fields are valid.
Does anyone have a class or link to some example code that I can use, or change for my own needs.

Posted: Tue Dec 28, 2004 4:04 am
by bytte
there's tons of scripts that validate form fields out there on the net. do a google search: php validate form