XUpload - Post.php Variables

Message
Author
dmort
Posts: 2
Joined: Nov 23, 2007 8:06 am

Post.php Variables

#1 Postby dmort » Nov 23, 2007 8:13 am

I have been unable to extract only the fields I need from the post.php example, or rename them to mysql database fields to insert them after upload. i.e. ... file_0,file_0_size,host

Can anyone send me more info.
Thank You in Advance.

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

#2 Postby PilgrimX182 » Nov 23, 2007 8:41 am

XUpload Pro 2.5 version?
What do you get in post.php now?

dmort
Posts: 2
Joined: Nov 23, 2007 8:06 am

Post.php Variables

#3 Postby dmort » Nov 23, 2007 9:02 am

Yes v.2.5.
I see all the data correct on the screen.
I am not a programer and I can't read and fill those values in an array to write to Mysql DB.
Your Software is great, just hoping for a little help :

// Fields List With Requirements
$fields = array
(
'email',
'date_time',
'file',
'comments'
);

$date_time = date("Y-m-d H:i:s");
$file = file_upload(strtotime("now")."_");

// Build Data Array from Fields and Posted Data
foreach($fields as $key => $value)
{
$field_var = $$key;
$data_array[$key] = $field_var;

I can't get the data correctly.