Hello,
I have the following code:
[PHP]
$RecordID = $_POST['PKid'];
$LastModBy= $_POST['LastModBy'];
// These datetime vars live in globals.php
$mySQLToday = $thisYear.'-'.$thisMonth.'-'.$thisDay; // prints todays date in YYYY-MM-DD format
$attachment_typ e = "workAttach s"; // What is the file type for this section?
$file_path = $datastore_root ."/".$owner."/".$attachment_t ype."/".$thisYear ."/".$thisMont h."/".$thisDay;...
User Profile
Collapse
-
POST variables are empty
-
In relation to your post, I have a problem where I have multiple files uploaded at ones into $_FILES, Do you know how I can loop through $_FILES to obtain the $_FILES['filedata']['tmp_name'] and $_FILES['filedata']['name'] for each uploaded file, I am having an extremely hard time figuring that out by using foreach and for loop...is there another way to do that...
Thanx for any help on this...... -
Thanx for the prompt response,
I get [PHP]Array()[/PHP]
But I should also mention that the files are initially uploaded all at once via a multiple file upload flash tool into the directory uploadDir through the script I posted. Ultimately, I want to put each uploaded file as a separate record in the database, but I first can't figure out how to process each uploaded file separately with a loop (using foreach or a for loop) in...Leave a comment:
-
Hi:
I have a problem along the same lines, but more specifically I am trying to do a loop to determine obatain the files individually that were uploaded to a directory, unlike the previous situation where each $_FILES is manually inserted into a different variable. I am not sure how I should be able to loop through $_FILES['Filedata'] and subsequently $_FILES['Filedata'] ['temp_name'] and $_FILES['Filedata'] ['name']
...Leave a comment:
No activity results to display
Show More
Leave a comment: