close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

redirect after upload

Thread began 8/19/2009 7:20 pm by deafboyz_audio386924 | Last modified 8/25/2009 12:57 pm by Jason Byrnes | 2165 views | 11 replies |

deafboyz_audio386924

redirect after upload

i have an upload page that i want to submit to my database, which it does..... but then i want it to go to thanYou.htm for a thank you page. how do i do this, no on e else can seem to figure it out with this huge script dfp has. If i do have to edit the helperphp.php file can someone please tell me exactly where to do that, maybe with an example and general line number, im not too coding inclined, which of course is why i made this purchase....thanks....: here is my uplaod page:

<?php 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/upload/",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "1",
'ResizeWidth' => "200",
'ResizeHeight' => "200",
'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/upload/",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "1",
'ResizeWidth' => "200",
'ResizeHeight' => "200",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult2_1 End
// WA_UploadResult2 Params End?>
<?php
// WA_UploadResult3 Params Start
$WA_UploadResult3_Params = array();
// WA_UploadResult3_1 Start
$WA_UploadResult3_Params["WA_UploadResult3_1"] = array(
'UploadFolder' => "images/upload/",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "1",
'ResizeWidth' => "200",
'ResizeHeight' => "200",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult3_1 End
// WA_UploadResult3 Params End?>
<?php
// WA_UploadResult4 Params Start
$WA_UploadResult4_Params = array();
// WA_UploadResult4_1 Start
$WA_UploadResult4_Params["WA_UploadResult4_1"] = array(
'UploadFolder' => "images/upload/",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "4",
'ResizeWidth' => "200",
'ResizeHeight' => "200",
'ResizeFillColor' => "#035429" );
// WA_UploadResult4_1 End
// WA_UploadResult4 Params End?>
<?php
// WA_UploadResult5 Params Start
$WA_UploadResult5_Params = array();
// WA_UploadResult5_1 Start
$WA_UploadResult5_Params["WA_UploadResult5_1"] = array(
'UploadFolder' => "images/upload/",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "4",
'ResizeWidth' => "200",
'ResizeHeight' => "200",
'ResizeFillColor' => "#035429" );
// WA_UploadResult5_1 End
// WA_UploadResult5 Params End
?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["Submit"])){
WA_DFP_UploadFiles("WA_UploadResult1", "Browse", "0", "", "PNG:2", $WA_UploadResult1_Params);
}?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult2");
if(isset($_POST["Submit"])){
WA_DFP_UploadFiles("WA_UploadResult2", "Browse2", "0", "", "PNG:2", $WA_UploadResult2_Params);
}?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult3");
if(isset($_POST["Submit"])){
WA_DFP_UploadFiles("WA_UploadResult3", "Browse3", "0", "", "PNG:2", $WA_UploadResult3_Params);
}?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult4");
if(isset($_POST["Submit"])){
WA_DFP_UploadFiles("WA_UploadResult4", "Browse4", "0", "", "PNG:2", $WA_UploadResult4_Params);
}?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult5");
if(isset($_POST["Submit"])){
WA_DFP_UploadFiles("WA_UploadResult5", "Browse5", "0", "", "PNG:2", $WA_UploadResult5_Params);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="WA_DigitalFilePro/jquery-blockui-formprocessing.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>index</title>
<style type="text/css">
<!--
#container #mainContent #uploadDiv {
height: auto;
width: auto;
margin: 0px;
padding: 0px;
float: left;
}
#container #mainContent #leftDiv {
float: left;
height: 400px;
width: 5%;
clear: both;
}
#container #mainContent #uploadDiv #form1 input {
margin-top: 0.6em;
}
#container #mainContent #uploadDiv #form1 #submit {
}
#apDiv1 {
position:absolute;
width:88px;
height:37px;
z-index:1;
left: 675px;
top: 526px;
}
-->
</style>
<style type="text/css">
<!--
@import url("styles/main.css");
-->
</style>
</head>

<body>
<div id="container">
<div id="header"><img src="images/top banner.jpg" width="967" height="110" alt="Deaf Boyz Audio - Way too loud..." /></div>
<div id="mainContent">
<div id="headerDiv">
<h1>Upload</h1>
</div>
<div class="leftDiv"></div>
<div id="uploadDiv">
<div id="form1_ProgressWrapper">
<form action="" method="post" enctype="multipart/form-data" name="form1" id="form1">
<input name="Browse5" type="file" id="browse" size="45" maxlength="200" />
<input name="Browse4" type="file" id="browse" size="45" maxlength="200" />
<input name="Browse3" type="file" id="browse" size="45" maxlength="200" />
<input name="Browse2" type="file" id="browse" size="45" maxlength="200" />
<input name="Browse" type="file" id="browse" size="45" maxlength="200" />
<input name="Submit" type="submit" id="submit" value="Upload" /></form>
</div>

</div>
<div id="rightDiv">
<div id="textDiv">
<p>Got an insane Car Audio Setup that you want to show off?</p>
<p>&nbsp;</p>
<p>Post up pictures of it here... Get it noticed by others on DeafBoyzAudio.com</p>
<p>&nbsp;</p>
<p>File types accepted are: JPG, JPEG, PNG, GIF</p>
<p>&nbsp;</p>
<p>Support for video coming soon!!!!</p>
<p>&nbsp;</p>
</div>
</div>
</div>
<div id="sidebar">
<p class="sidebarLink"><a href="index.htm">home</a></p>
<p class="sidebarLink"><a href="pics.htm">pics</a></p>
<p class="sidebarLink"><a href="video.htm">video</a></p>
<p class="sidebarLink"><a href="upload.php">upload</a></p>
<p class="sidebarLink"><a href="about.htm">about</a></p>
<p class="sidebarLink"><a href="feedback.php">feedback</a></p>
</div>
<div id="footer">
<h6 class="copyright">Copyright Deaf Boyz Audio, 2009. All Rights Reserved.</h6>
</div>
</div>
<div id="form1_ProgressMessageWrapper" class="blockUIOverlay" style="display:none;">
<script type="text/javascript">
WADFP_SetProgressToForm('form1', 'form1_ProgressMessageWrapper', WADFP_Theme_Options['ExtendingWheel:Nautica']);
</script>
<div id="form1_ProgressMessage" >

<p style="margin:10px; padding:5px;" ><img src="WA_DigitalFilePro/images/nautica-wheel.gif" alt="" title="" style="vertical-align:middle;" />&nbsp;&nbsp;Please wait</p>

</div>
</div>
</body>
</html>
Sign in to reply to this post

Jason ByrnesWebAssist

Currently, your upload page does not have an insert record server behavior on it to store anything in the database.


You state initially that you want the upload page to store to the database. When you add the Insert Record Server behavior, there will be a setting to redirect to a specified page after the record is inserted. Use this setting to redirect to the thank you page.


If you do not add any other behaviors to the page and want to redirect after upload is successful, use the Server Redirect server behavior. On the Server behaviors panel, clickthe plus button and select WA Utilities -> Server Redirect.

Sign in to reply to this post

deafboyz_audio386924

i guess i shouldnt of said it uploads to my database bc your right it doesnt. it puts the images in a folder on my server. i am having some troubles connecting to the database through dw, it keeps saying it doesnt exist...

Sign in to reply to this post

Jason ByrnesWebAssist

It says the database doesn't exist or the MySQL server doesn't exist?

What is the exact error you are getting?

Sign in to reply to this post

deafboyz_audio386924

my sql. clicked on the databases tab on my sign in page, then my sql connection. typed in the info from my host and boom>>>

mySQL Error#:2002 php_network_getaddresses: getaddrinfo failed: no such host is known.

the weird thing is that when im on the web and i go to my sign up page and actually sign up, it adds the values to my database.... Now when im in the databases tab on that same page in DW, i cannot see my tables listed from the databases tab. thanks for your help

Sign in to reply to this post

Jason ByrnesWebAssist

In your site definition, make sure the testing server is set to connect to the remote host via FTP. and make sure to test the FTP connection.

Sign in to reply to this post

deafboyz_audio386924

i want to test locally bc its faster. is that possible? im not worried about testing my actual database data, just the css and layout. i have the testing server set up on my local machine with WAMP, but it only works for some pages.

Sign in to reply to this post

Jason ByrnesWebAssist

To test locally, you will need to use the Local MySQL server as well. Crate a copy of the database on your local computer and set the Connection file to connect to the local MySQL server. It sounds like the remote MySQL server does not allow connections from outside sources.

Sign in to reply to this post

deafboyz_audio386924

yea they might not allow outside connections, ill have to check. i have WAMP on my local machine and can test through that fine, i jusdt have to change the login info in my signIn.php file. When i upload to the web i'll have to change the login info to that of my remote database.... i think that the only way i can do it am i wrong?

Sign in to reply to this post

Jason ByrnesWebAssist

Yes, you need to change the connection file when uploading to the remote server.

Sign in to reply to this post
loading

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