loop checking checking in javascript -
I have several files to upload to a PHP page. Two of those that require that area are required To check out I wrote a JS in my JS, file type 1 & amp; 2 Essential types are: When submitting This will work, but there should be better ways. check counting is the number of files to upload. (I = 1; i & lt; = count; i ++) for <
{if (file_type == 1 || File_type == 2} {found1 ++; }}
found1 will be form submission as
2 . But there is a problem here that the required field '1' is being created as a flag value and twice as "code> 2 and form submission will be done. My requirement '1' is to be included in the form submission in '2'. How will this solve?
if (file 1 upload and file2 upload) { // submit form}
Comments
Post a Comment