Subversion Repositories web_pages

Rev

Rev 4 | Rev 6 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4 Rev 5
Line 98... Line 98...
98
        // Collect form data
98
        // Collect form data
99
        $message = '';
99
        $message = '';
100
        foreach ($config['fields'] as $field) {
100
        foreach ($config['fields'] as $field) {
101
            if ($field['type'] === 'file' && isset($_FILES[$field['name']])) {
101
            if ($field['type'] === 'file' && isset($_FILES[$field['name']])) {
102
                // Handle file attachments separately
102
                // Handle file attachments separately
-
 
103
                if ( $config['debug'] ) {
103
                echo "_FILES <pre>" . print_r($_FILES, true) . "</pre>";
104
                   echo "_FILES <pre>" . print_r($_FILES, true) . "</pre>";
-
 
105
                }
104
                $attachments = $_FILES[$field['name']];
106
                $attachments = $_FILES[$field['name']];
105
            } else {
107
            } else {
106
                $message .= "{$field['label']}: " . htmlspecialchars($_POST[$field['name']]) . "\n";
108
                $message .= "{$field['label']}: " . htmlspecialchars($_POST[$field['name']]) . "\n";
107
            }
109
            }
108
        }
110
        }