Hi,
I created a form (attached picture).
I want to get the file path and send this file path to other page through URL.
My problem starts when I submit the form, the file location omits itself; so after submiting the form just blank space is left.
I am passing the values of form like this: http://localhost/admin/dataimporter/validation.php?courses=?cid=132&courses=Course%20A,%20QuestionBank%20:true&filename=
But as you can see at the end of the URL, the filename is empty.
I m using this code to get the file path:
$mform->addElement('file', 'filename', get_string('file', 'data_importer'), 'size="40"');
$mform->setType('filename', PARAM_RAW);
$mform->addRule('filename', null, 'required');
I am also using $_FILES['filename']; I get the filename by the help of this function but not the location of the file.
Please help me to pass the file path through URL.
Thanks...