hello,
I am using XUpload successfully, except I can't pass additional form variables through upload.cgi for use in further php processing...
I saw your reply to rayfresh in the 'How to use values from the upload form in the upload.cgi ?' post, where you explain how to add extra code to upload.cgi, e.g.
in upload.cgi find:
$fn = substr($fn,0,$c->{max_name_length});
and add line below:
Code:
$fn = $cg->param('code');
when I try this, I can retrieve EITHER the standard variables such as $_POST['file_name'][n]
OR the additional variables I have added using your method,
but not both...
that is to say, if I add the lines
$fn = $cg->param('id');
$fn = $cg->param('tbl');
$fn = $cg->param('key');
I can retrieve values for $_POST['id'], $_POST['tbl'] and $_POST['key']
but $_POST['file_name][0] has been mysteriously emptied...
if I don't add lines, then I am able to retrieve $_POST['file_name'][0] etc with not problem...
any help you can offer will be greatly appreciated
XUpload - problems with passing additional POST variables
-
- Posts: 2
- Joined: Nov 27, 2008 9:33 pm
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
-
- Posts: 2
- Joined: Nov 27, 2008 9:33 pm
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm