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????? Link to comment https://forums.phpfreaks.com/topic/156048-help-with-if-statement/ 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 Link to comment https://forums.phpfreaks.com/topic/156048-help-with-if-statement/#findComment-821498 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 Link to comment https://forums.phpfreaks.com/topic/156048-help-with-if-statement/#findComment-821500 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.