Parašė FreeP· 2009 Vas. 6 15:02:48
#1
Seviki, gal kas rastumėte, kodel ši forma neveikia?
Tiesiog neperduoda roster failo.
function CreateRosterUploadBox () {
echo "<form action=\"rosteradmin.php\" method=\"POST\" enctype=\"multipart/form-data\">
Send these files:<br>";
echo "Roster: <input name=\"rosterfile[]\" type=\"file\"><br>\n";
echo "Old Roster Table Name (default is todays date): <input name=\"oldtablename\" type=\"text\"><br>\n";
echo "<input type=submit value=\"Send files\">\n";
echo "</form>\n";
}
//UpdatePlayerRosters("players.dbf");
switch ($rosterfile[0]) {
case '':
CreateRosterUploadBox();
break;
default:
UpdatePlayerRosters($rosterfile[0], $oldtablename);
}