Ron said:
Well, thanks for the discussion. I am making some progress with the
multiple upload, but am coming to the conclusion that it's not
possible (at least for me) to have that browse button (or surragote)
styled.
regarding multi files....
.....and after a wasted (experimental) hour on testing this (since you
brought it up, and i didnt feel like working for the moment) i got this to
work nicely.....
START PHP CODE.....
<html>
<head>
<script type="text/javascript">
function addafile(){
vp = document.getElementById("poobear");
vp.innerHTML += "<p><input name=\"eeyore[]\"
type=\"file\"></p>";
}
</script>
</head>
<body>
<form name="theform" method="post" action="d.php"
enctype="multipart/form-data">
<p><input name="eeyore[]" type="file"></p>
<p><input name="tigger" type="button" onclick="addafile();"
value="add another file"></p>
<div id="poobear"></div>
<p><input type="submit" value="send all files to server"></p>
</form>
<?php
foreach ($_FILES as $key1 => $value1) {
echo "\$_FILES[$key1] = $value1<br>\n";
foreach ($value1 as $key2 => $value2) {
echo "\$_FILES[$key1][$key2] = $value2<br>\n";
foreach($value2 as $key3 => $value3) {
echo "\$_FILES[$key1][$key2][$key3] = $value3<br>\n";
}
}
}
?>
</body>
</html>
END PHP CODE.....