right now I get warning: Parameter 2 to sjc_form_submit() expected to be a reference, value given in /var/www/html/includes/form.inc on line 382.
I've literally been at this for a while and have tried everything I could find. I also tried comparing it to a piece of example code but nothing came of it.
All help is appreciated. I am really stuck.
<?php
function sjc_form_page() {
// $file_path = file_directory_path();
$output = '';
$output .= drupal_get_form('sjc_upload_form', &$form_state);
// $output .= drupal_get_form('upload_form');
$output .= drupal_get_form('sjc_form_submit', &$form_state);
return $output;
}
function sjc_upload_form($form_state) {
$form = array(
'#attributes' => array('enctype' => 'multipart/form-data'),
);
$form['file'] = array(
'#type' => 'file',
'#title' => 'Filename'
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => 'Submit',
);
return $form;
}
/*
$doctype = array(
'document' => ('document'),
'news' => ('news'),
'forms' => ('form'),
'other' => ('other'),
);
// $filetype = array(
// 'pdf' => ('pdf'),
// 'html' => ('html'),
// 'other' => ('other'),
// );
$docperm = array(
'public' => ('public'),
'private' => ('private'),
);
$form['doc_type'] = array(
'#title' => 'Document Type',