close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

images not uploading to specified folder

Thread began 2/12/2010 11:00 am by robert329616 | Last modified 2/16/2010 5:26 pm by robert329616 | 2657 views | 9 replies



I deleted the behavior and added the new one through DataAssist, still not working (probably me, too many hours not enough sleep), here is what I have:

<?php require_once('Connections/dpConnect.php'); ?>
<?php require_once("WA_DataAssist/WA_AppBuilder_PHP.php"); ?>
<?php require_once("WA_DigitalFilePro/HelperPHP.php"); ?><?php
// *** Redirect if username exists
if (isset($_POST[$MM_flag])) {
$loginUsername = $_POST['UserEmail'];
$LoginRS__query = "SELECT UserEmail FROM users WHERE UserEmail='" . $loginUsername . "'";
mysql_select_db($database_dpConnect, $dpConnect);
$LoginRS=mysql_query($LoginRS__query, $dpConnect) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);

//if there is a row in the database, the username was found - can not add the requested username
$MM_qsChar = "?";
//append the username to the redirect page
if (substr_count($MM_dupKeyRedirect,"?") >=1) $MM_qsChar = "&";
$MM_dupKeyRedirect = $MM_dupKeyRedirect . $MM_qsChar ."requsername=".$loginUsername;
header ("Location: $MM_dupKeyRedirect");
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array(
'UploadFolder' => "../images/petImages/",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "4",
'ResizeWidth' => "200",
'ResizeHeight' => "150",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_1 End
// WA_UploadResult1 Params End
WA_DFP_UploadFiles("WA_UploadResult1", "PetImage", "0", "", "JPG:80", $WA_UploadResult1_Params);
// WA Application Builder Insert
if ($_SERVER["REQUEST_METHOD"] == "POST") // Trigger
$WA_connection = $dpConnect;
$WA_table = "users";
$WA_sessionName = "users_UserID";
$WA_redirectURL = "";
$WA_keepQueryString = false;
$WA_indexField = "UserID";
$WA_fieldNamesStr = "UserEmail|UserPassword|UserFirstName|UserLastName|PetName|PetImage|ContestTerms|UserPhone";
$WA_fieldValuesStr = "".((isset($_POST["UserEmail"]))?$_POST["UserEmail"]:"") ."" . "|" . "".((isset($_POST["UserPassword"]))?$_POST["UserPassword"]:"") ."" . "|" . "".((isset($_POST["UserFirstName"]))?$_POST["UserFirstName"]:"") ."" . "|" . "".((isset($_POST["UserLastName"]))?$_POST["UserLastName"]:"") ."" . "|" . "".((isset($_POST["PetName"]))?$_POST["PetName"]:"") ."" . "|" . "".$WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"] ."" . "|" . "".((isset($_POST["ContestTerms"]))?$_POST["ContestTerms"]:"") ."" . "|" . "".((isset($_POST["UserPhone"]))?$_POST["UserPhone"]:"") ."";
$WA_columnTypesStr = "',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|none,1,0|',none,''";
$WA_fieldNames = explode("|", $WA_fieldNamesStr);
$WA_fieldValues = explode("|", $WA_fieldValuesStr);
$WA_columns = explode("|", $WA_columnTypesStr);
$WA_connectionDB = $database_dpConnect;
mysql_select_db($WA_connectionDB, $WA_connection);
if (!session_id()) session_start();
$insertParamsObj = WA_AB_generateInsertParams($WA_fieldNames, $WA_columns, $WA_fieldValues, -1);
$WA_Sql = "INSERT INTO `" . $WA_table . "` (" . $insertParamsObj->WA_tableValues . ") VALUES (" . $insertParamsObj->WA_dbValues . ")";
$MM_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error());
$_SESSION[$WA_sessionName] = mysql_insert_id();
if ($WA_redirectURL != "") {
if ($WA_keepQueryString && $WA_redirectURL != "" && isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] !== "" && sizeof($_POST) > 0) {
$WA_redirectURL .= ((strpos($WA_redirectURL, '?') === false)?"?":"&").$_SERVER["QUERY_STRING"];
header("Location: ".$WA_redirectURL);
<script src="WA_DigitalFilePro/jquery-blockui-formprocessing.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>DogPedic Sleep System Pawsitively Fabulous Photo Contest</title>
<meta name="description" content="">
<meta name="keywords" content="" />
<meta name="author" content="TriStar Products, Inc -">
<meta name="revisit-after" content="30 days">
<meta name="robots" content="all">
<link href="css/combined.css" rel="stylesheet" type="text/css" />
<link href="WA_SecurityAssist/styles/Refined_Pacifica.css" rel="stylesheet" type="text/css" />
<link href="WA_SecurityAssist/styles/Arial.css" rel="stylesheet" type="text/css" />
<?php include("includes/header.php"); ?>
<?php include("includes/mainNav.php"); ?>
<!-- editable content begins -->

<div id="contentWrapper" class="contentBckColor">
<div id="photoWrapper">
<div id="subcontent">
<div id="RegistrationContainer" class="WAATK">
<div id="WAATKRegistrationForm_ProgressWrapper">
<form method="post" name="WAATKRegistrationForm" enctype="multipart/form-data" id="WAATKRegistrationForm">
<table class="WAATKDataTable" cellpadding="0" cellspacing="0" border="0">
<th>First Name:</th>
<td><input type="text" class="WAATKTextField" name="UserFirstName" id="UserFirstName" value="" size="32" /></td>
<th>Last Name:</th>
<td><input type="text" class="WAATKTextField" name="UserLastName" id="UserLastName" value="" size="32" /></td>
<th>Phone Number:</th>
<td><input type="text" class="WAATKTextField" name="UserPhone" id="UserPhone" value="" size="32" /></td>
<th>Email Address:</th>
<td><input type="text" class="WAATKTextField" name="UserEmail" id="UserEmail" value="" size="32" /></td>
<td><input type="password" class="WAATKTextField" name="UserPassword" id="UserPassword" value="" ></td>
<th>Pet Name:</th>
<td><input type="text" class="WAATKTextField" name="PetName" id="PetName" value="" size="32" /></td>
<th>Pet Image:</th>
<td><input name="PetImage" type="file" id="PetImage"></td>
<th>Contest Terms:</th>
<td><input type="checkbox" name="ContestTerms" id="ContestTerms" value="1" /></td>
<div class="WAATKButtonRow">
<input type="image" hspace="0" vspace="0" border="0" name="Register" id="Register" value="Register" alt="Register" src="WA_SecurityAssist/images/Pacifica/Refined_register.gif" />

<?php include("includes/productBanner.php"); ?>
<div class="clear"></div>
<?php include("includes/footer.php"); ?>


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





Ease of use


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