Let's start: this is a part of step-5.php code <input type="hidden" name="cart_order_id" value=""> <input type="hidden" name="total" value=""> PHP: and this is part of code in step-3.php for uploading files <?php //set where you want to store files //in this example we keep file in folder upload //$HTTP_POST_FILES['ufile']['name']; = upload file name //for example upload file name cartoon.gif . $path will be upload/cartoon.gif $path= "files/temp/".$HTTP_POST_FILES['ufile']['name']; if($ufile !=none) { if(copy($HTTP_POST_FILES['ufile']['tmp_name'], $path)) { echo "<strong>Successful</strong><BR/><BR/>"; //$HTTP_POST_FILES['ufile']['name'] = file name //$HTTP_POST_FILES['ufile']['size'] = file size //$HTTP_POST_FILES['ufile']['type'] = type of file echo "<strong>File Name: </strong>".$HTTP_POST_FILES['ufile']['name']."<BR/><BR/>"; echo "<strong>File Size: </strong><br>".$HTTP_POST_FILES['ufile']['size']." bytes<BR/>" .round($HTTP_POST_FILES['ufile']['size']/1024) . ' Kb<BR/>' .round($HTTP_POST_FILES['ufile']['size']/(1024*1024),3) . ' Mb<BR/><BR/>'; echo "<strong>Price: </strong>".round($HTTP_POST_FILES['ufile']['size']/1024) ." $<BR/><BR/>"; echo "<strong>File Type: </strong>".$HTTP_POST_FILES['ufile']['type']."<BR/><BR/>"; } else { echo "Error"; } } ?> PHP: PROBLEM: in step-5.php in value="", value should be this .round($HTTP_POST_FILES['ufile']['size']/1024) . ' Kb<BR/>' PHP: file that user uploaded in step-3.php in kilobytes. stats.php - where I show statistics of uploaded files and space left for uploading as you can see, max for uploading is 1000mb = 10^6kb = 10^9bytes all files are uploaded in folder files/exe, files/txt...--> you should count all files in this folder to show sizes of them. In all this subfolders exe,txt,zip...are 3 files(index.html,listing.php and descriptionfile.txt)--> you shouldn't count those files. in folder "files" there is subfolder temp --> you also shouldm't count this folder . and at the end - sizes of all files (except "index.html,listing.php and descriptionfile.txt" and in folder "temp") should be sum (in mb,kb and bytes) and be shown and of course free space left. <div id="statsdiv"> <table width="186" height="74" border="0" align="center" cellpadding="0" cellspacing="0" id="stats-table"> <tr> <td width="50%" align="center" class="bottom-border2">Uploaded</td> <td width="50%" align="center" class="bottom-border">Left</td> </tr> <tr> <td class="bottom-border2">B = 0</td> <td class="bottom-border" >B = 1 000 000 000</td> </tr> <tr> <td class="bottom-border2">KB = 0</td> <td class="bottom-border"> KB = 1 000 000</td> </tr> <tr> <td >MB = 0</td> <td class="bottom-border3">MB = 1 000</td> </tr> </table> </div> HTML: