Hi,
I have the following code;
(repeated 10 times, for 10 different "FILExx" fields).
However, even with ALL of them populated with content, it shows the error message for number 3 (FILE3).
Is "document.p.FILE1.value" the correct string format to use? As I said, it works fine for 1 and 2, but stops at 3 :/
Also - while I'm here
Does anyone have a good regex code to verify the files are .rtf/.txt/.doc format? We check via a Perl script anyway, but it saves the users a lot of hassle if done before submitting to the script (i.e going back a page, "clears" out the "file" fields, which is a bit of a PITA
)
TIA!
Andy
I have the following code;
Code:
if (document.p.FILE1.value == "") {
alert('You need to specify a FILE for document number 1');
return false;
}
(repeated 10 times, for 10 different "FILExx" fields).
However, even with ALL of them populated with content, it shows the error message for number 3 (FILE3).
Is "document.p.FILE1.value" the correct string format to use? As I said, it works fine for 1 and 2, but stops at 3 :/
Also - while I'm here


TIA!
Andy