/** * Internal method. Alters submitted data to be suitable for quickforms processing. * Must be called when the form is fully set up. */ function _process_submission($method) { $submission = array(); if ($method == 'post') { if (!empty($_POST)) { $submission = $_POST; } } else { $submission = array_merge_recursive($_GET, $_POST); // emulate handling of parameters in xxxx_param() } // following trick is needed to enable proper sesskey checks when using GET forms // the _qf__.$this->_formname serves as a marker that form was actually submitted if (array_key_exists('_qf__' . $this->_formname, $submission) and $submission['_qf__' . $this->_formname] == 1) { if (!confirm_sesskey()) { print_error('invalidsesskey'); } $files = $_FILES; } else { $submission = array(); $files = array(); } $this->_form->updateSubmission($submission, $files); }