Hi, thanks for taking a look. The log file prints everything in sequence, something like this:
Head1 Head2 Head3 Head4 Head5
val1 val2 val9 val10 val1
what I want is this:
Head1 Head2 Head3 Head4 Head5 ... Head9
val1 val2 val9
where values 3-8 are null, they don't print. I'll try you suggestion and see what that gives me.
Thank you!
UPDATE:
adding:
print LOGFILE "/$key/".$FORM{$key}."\n";
instead of what I have already doesn't add the fields with no value, it just prints element on a new line, like it's a new record in the flat file