View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Following step by step guide and adding Progress bar shows and does nothing

Thread began 10/08/2009 3:32 pm by jason228892 | Last modified 10/26/2009 4:48 pm by jason228892 | 2076 views | 10 replies

jason228892

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!!!!!

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...