simply to put the code in the same page:
<?php
$uploader=new PhpUploader();
$uploader->MultipleFilesUpload=true;
$uploader->InsertText="Select multiple files (Max 1000M)";
$uploader->MaxSizeKB=1024000;
$uploader->AllowedFileExtensions="*.jpg,*.png,*.gif,*.bmp,*.txt,*.zip,*.rar";
$uploader->SaveDirectory="../pics/";
$uploader->FlashUploadMode="Partial";
$uploader->Render();
?>
<script type='text/javascript'>
function CuteWebUI_AjaxUploader_OnTaskComplete(task)
{
var div=document.createElement("div");
var table=document.createElement("table");
var tableRow=document.createElement("tr");
var tableData=document.createElement("td");
var tableData1=document.createElement("td");
var input=document.createElement("input");
input.setAttribute("type","text");
input.setAttribute("name", "albumPicComment");
var link=document.createElement("a");
link.setAttribute("href","../pics/"+task.FileName);
link.innerHTML="You have uploaded file : ../pics/"+task.FileName;
link.target="_blank";
var img=document.createElement("img");
img.setAttribute("src", "../pics/" + task.FileName);
img.setAttribute("class", "postBackPics");
div.appendChild(table);
table.appendChild(tableRow);
tableRow.appendChild(tableData);
tableRow.appendChild(tableData1);
tableData.appendChild(img);
tableData1.appendChild(input);
img.appendChild(link);
document.body.appendChild(div);
}
</script>
Man Pak Hong, Dave
manpakhong@hotmail.com
Man Pak Hong, Dave