justAnoob Posted April 29, 2009 Share Posted April 29, 2009 here i have a image upload script that works great... what im looking to do is have the user be able to upload 5 pictures if they want... i have the 5 file fields on the page ready to go,,, the 1st one works great and is required by the user(they must have atleast 1 picture to be uploaded,,, and a max of 5)... Would this be a good way to accomplish this???? upload script for image if filefield[image2] is not empty upload script if filefield[image3] is not empty upload script if filefield[image4] is not empty upload script if filefield[image5] is not empty upload script If this way is ok to do,, how would I word the if statement correctly????? Quote Link to comment Share on other sites More sharing options...
Helmet Posted April 29, 2009 Share Posted April 29, 2009 http://us3.php.net/manual/en/features.file-upload.multiple.php Quote Link to comment Share on other sites More sharing options...
mikesta707 Posted April 29, 2009 Share Posted April 29, 2009 if (!empty($feild1){ //stuff } if (!empty($field2){ //stuff } //etc. else { //do nothing } try that oops misunderstood Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.