XUpload - problems passing data to post.php

Message
Author
killahboo
Posts: 2
Joined: Dec 18, 2008 11:53 am

problems passing data to post.php

#1 Postby killahboo » Dec 18, 2008 11:57 am

I have installed the script and have got the file uploads working fine however i cant seem to add custom data fields.

For instance if i try adding
<input type="text" name="test">
to the upload page nothing shows up on post.php . For the purpose of testing this before i write a custom script to put the required info in a database i using the default post.php that came with the script and tried the following

print "<br>Test:".$_POST["test"][$i];
print "<br>Test:".$_POST["file_test"][$i];''

but not having any luck, am i missing something?

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Dec 18, 2008 12:05 pm

Are you sure you've added it inside <form> tags?
Also probably inputs with name containing 'file_' could not work.

killahboo
Posts: 2
Joined: Dec 18, 2008 11:53 am

#3 Postby killahboo » Dec 18, 2008 12:08 pm

PilgrimX182 wrote:Are you sure you've added it inside <form> tags?
Also probably inputs with name containing 'file_' could not work.
lol whoops I dont know how i missed that, i had put it just before the opening <form> tag. Thanks for your speedy reply :)