Following step by step guide and adding Progress bar shows and does nothing
Hi, I've started from the absolute beginning and tried to follow the step by step guide to adding an upload image form and got nowhere. Tried adding a progress bar too but makes things worse. Here's the code produced by following the guide. All files have been uploaded and are in the locations outlined below. Can somebody please tell me where it's going wrong? Many thanks.
-----------THE ORRIBLE CODE------------
<?php
<script src="WA_DigitalFilePro/jquery-blockui-formprocessing.js" type="text/javascript"></script>require_once("WA_DigitalFilePro/HelperPHP.php"); ?>
<?php
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array(
'UploadFolder' => "images/uploads/",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "0",
'ResizeWidth' => "120",
'ResizeHeight' => "120",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_1 End
// WA_UploadResult1 Params End
?>
<?php
// WA_UploadResult2 Params Start
$WA_UploadResult2_Params = array();
// WA_UploadResult2_1 Start
$WA_UploadResult2_Params["WA_UploadResult2_1"] = array(
'UploadFolder' => "images/uploads/",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "0",
'ResizeWidth' => "120",
'ResizeHeight' => "120",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult2_1 End
// WA_UploadResult2 Params End
?>
<?php?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["submit"])){
WA_DFP_UploadFiles("WA_UploadResult1", "upload", "0", "", "true", $WA_UploadResult1_Params);
}?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult2");
if($_SERVER["REQUEST_METHOD"] == "POST"){
WA_DFP_UploadFiles("WA_UploadResult2", "upload", "0", "", "true", $WA_UploadResult2_Params);
}
?>
<script src="WA_DigitalFilePro/jquery-blockui-formprocessing.js" type="text/javascript"></script>
<div id="form1_ProgressWrapper">
<form id="form1" name="form1" enctype="multipart/form-data" method="post" action="">
<p>
<label>Upload File
<input type="file" name="upload" id="upload" />
</label>
</p>
<p>
<label>
<input type="submit" name="submit" id="submit" value="Submit" />
</label>
</p>
</form>
</div>
--------------ORRIBLE CODE ENDS--------------------
As soon as the DIV for the progress bar is added. The form disappears completely! As someone else has mentioned I'm not a coder either but don't mind getting hands dirty, but the sales pitch is 'with little or no coding experience'. I think not!!!!!