Syntax examples for file uploading
---- test.php3
Appletfile uploads
CODEBASE="/AppletFile/classes" WIDTH=420 HEIGHT=180 MAYSCRIPT>
onSubmit="return document.FileUpload.submit(document,this,true)"
METHOD=POST>
---
Syntax for uploaded files:
--- result.php3
Uploaded files
/* The userfile scheme doesn't use a php array[], */
/* so the files start out as separate FILE1, FILE2, */
/* FILE3, FILEn, variables. */
$fp = fopen ($FILE1, "r");
if (isset($FILE2)){ $fp2 = fopen($FILE2, "r");}
if (isset($FILE3)){ $fp3 = fopen($FILE3, "r");}
if (isset($FILE4)){ $fp4 = fopen($FILE4, "r");}
/* sample functions to display the uploaded files */
fpassthru($fp);
if (isset($fp2)){fpassthru($fp2);}
if (isset($fp3)){fpassthru($fp3);}
if (isset($fp4)){fpassthru($fp4);}
?>
Upload Complete.