close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

images not uploading to specified folder

Thread began 2/12/2010 8:00 am by robert329616 | Last modified 2/16/2010 2:26 pm by Jason Byrnes | 4106 views | 9 replies |

robert329616

images not uploading to specified folder

Hello,

I have been wrestling with this most of the night till now with the deadline in a few hours.

I followed the tutorials but have had no luck with the file actually uploading to the specified folder. I had errors with CS4 (added <?php?> at the end), so I switched to CS3 and received no errors. I then followed the dfp_da_insert_update_ht-1.pdf which added the image file name to the data base (which I needed) but still did not upload the file.

I tried on my MAMP server and GoDaddy with the same results. The code was added in the user_reg form that SecurityAssist created (per the pdf instructions).

Here is the code up to the form:

<?php require_once('Connections/dpConnect.php'); ?>
<?php require_once("WA_DataAssist/WA_AppBuilder_PHP.php"); ?>
<?php require_once("WA_DigitalFilePro/HelperPHP.php"); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
?>
<?php
// *** Redirect if username exists
$MM_flag="MM_insert";
if (isset($_POST[$MM_flag])) {
$MM_dupKeyRedirect="duplicate.php";
$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
if($loginFoundUser){
$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");
exit;
}
}
?>
<?php
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

?>
<?php
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "WAATKRegistrationForm")) {
$insertSQL = sprintf("INSERT INTO users (UserFirstName, UserLastName, UserPhone, UserEmail, UserPassword, PetName, PetImage, ContestTerms) VALUES (%s, %s, %s, %s, %s, %s, %s, %s)",
GetSQLValueString($_POST['UserFirstName'], "text"), GetSQLValueString($_POST['UserLastName'], "text"), GetSQLValueString($_POST['UserPhone'], "text"), GetSQLValueString($_POST['UserEmail'], "text"), GetSQLValueString($_POST['UserPassword'], "text"), GetSQLValueString($_POST['PetName'], "text"), GetSQLValueString($_POST['PetImage'], "text"), GetSQLValueString($_POST['ContestTerms'], "int"));

mysql_select_db($database_dpConnect, $dpConnect);
$Result1 = mysql_query($insertSQL, $dpConnect) or die(mysql_error());

$insertGoTo = "users_LogIn.php";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $insertGoTo));
}?>
<?php
// 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
?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if($_SERVER["REQUEST_METHOD"] == "POST"){
WA_DFP_UploadFiles("WA_UploadResult1", "PetImage", "0", "", "JPG:80", $WA_UploadResult1_Params);
}?>
<?php
// 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 = "PetImage";
$WA_fieldValuesStr = "".$WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"] ."";
$WA_columnTypesStr = "',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);
}
}
?>

Help would be greatly appreciated.

Thanks,
Rob

Sign in to reply to this post

robert329616

Just in case here is the full page code -- thanks again.

<?php require_once('Connections/dpConnect.php'); ?>
<?php require_once("WA_DataAssist/WA_AppBuilder_PHP.php"); ?>
<?php require_once("WA_DigitalFilePro/HelperPHP.php"); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
?>
<?php
// *** Redirect if username exists
$MM_flag="MM_insert";
if (isset($_POST[$MM_flag])) {
$MM_dupKeyRedirect="duplicate.php";
$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
if($loginFoundUser){
$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");
exit;
}
}
?>
<?php
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

?>
<?php
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "WAATKRegistrationForm")) {
$insertSQL = sprintf("INSERT INTO users (UserFirstName, UserLastName, UserPhone, UserEmail, UserPassword, PetName, PetImage, ContestTerms) VALUES (%s, %s, %s, %s, %s, %s, %s, %s)",
GetSQLValueString($_POST['UserFirstName'], "text"), GetSQLValueString($_POST['UserLastName'], "text"), GetSQLValueString($_POST['UserPhone'], "text"), GetSQLValueString($_POST['UserEmail'], "text"), GetSQLValueString($_POST['UserPassword'], "text"), GetSQLValueString($_POST['PetName'], "text"), GetSQLValueString($_POST['PetImage'], "text"), GetSQLValueString($_POST['ContestTerms'], "int"));

mysql_select_db($database_dpConnect, $dpConnect);
$Result1 = mysql_query($insertSQL, $dpConnect) or die(mysql_error());

$insertGoTo = "users_LogIn.php";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $insertGoTo));
}?>
<?php
// 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
?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if($_SERVER["REQUEST_METHOD"] == "POST"){
WA_DFP_UploadFiles("WA_UploadResult1", "PetImage", "0", "", "JPG:80", $WA_UploadResult1_Params);
}?>
<?php
// 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 = "PetImage";
$WA_fieldValuesStr = "".$WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"] ."";
$WA_columnTypesStr = "',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);
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Registration</title>
<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" />
</head>

<body>

<div id="RegistrationContainer" class="WAATK">
<form action="<?php echo $editFormAction; ?>" method="post" name="WAATKRegistrationForm" id="WAATKRegistrationForm">
<h1>Registration</h1>
<table class="WAATKDataTable" cellpadding="0" cellspacing="0" border="0">
<tr>
<th>First Name:</th>
<td><input type="text" class="WAATKTextField" name="UserFirstName" id="UserFirstName" value="" size="32" /></td>
</tr>
<tr>
<th>Last Name:</th>
<td><input type="text" class="WAATKTextField" name="UserLastName" id="UserLastName" value="" size="32" /></td>
</tr>
<tr>
<th>Phone Number:</th>
<td><input type="text" class="WAATKTextField" name="UserPhone" id="UserPhone" value="" size="32" /></td>
</tr>
<tr>
<th>Email Address:</th>
<td><input type="text" class="WAATKTextField" name="UserEmail" id="UserEmail" value="" size="32" /></td>
</tr>
<tr>
<th>Password:</th>
<td><input type="password" class="WAATKTextField" name="UserPassword" id="UserPassword" value="" ></td>
</tr>
<tr>
<th>Pet Name:</th>
<td><input type="text" class="WAATKTextField" name="PetName" id="PetName" value="" size="32" /></td>
</tr>
<tr>
<th>Pet Image:</th>
<td><input name="PetImage" type="file" id="PetImage"></td>
</tr>
<tr>
<th>Contest Terms:</th>
<td><input type="checkbox" name="ContestTerms" id="ContestTerms" value="1" /></td>
</tr>
</table>
<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" />
<input type="hidden" name="MM_insert" value="WAATKRegistrationForm">
</div>
</form>
</div>

</body>
</html>

Sign in to reply to this post

robert329616

I have been trying to work through the issue. When I copied the WA_DFP_AllUploadsDebug to the form page (started from scratch following tutorial with nothing else) I received the following:

Status object: WA_UploadResult1
statusCode : 0
errorMessage : No file uploaded
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult1_2:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
statusCode : 0
errorMessage : No file uploaded
Still the same issue.

Thanks,
Rob

Sign in to reply to this post

Jason ByrnesWebAssist

for a file to upload, the forms encoding type must be set to multipart/form-data.


change the form tag:

php:
<form  action="<?php echo $editFormAction?>" method="post" name="WAATKRegistrationForm" id="WAATKRegistrationForm">




to:

php:
<form  action="<?php echo $editFormAction?>" method="post" name="WAATKRegistrationForm" enctype="multipart/form-data" id="WAATKRegistrationForm">
Sign in to reply to this post

robert329616

Jason,

Thanks, I tried the change to the form. Where before I was getting the image name posted to the data base, now I am getting the following error after I submit:

Column 'PetImage' cannot be null

I just changed the table to default as null, I no longer get the error. Now it is not posting the file name(where it did before) and still does not upload the file to the specified folder.

Rob

Sign in to reply to this post

Jason ByrnesWebAssist

you have the Dreamweaver insert record behavior on this page which you cannot use in conjunction with Digital File pro. You must remove the Dreamweaver insert record behavior from the page and use only the DataAssist insert record behavior.

Sign in to reply to this post

robert329616

Jason,

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
$MM_flag="MM_insert";
if (isset($_POST[$MM_flag])) {
$MM_dupKeyRedirect="duplicate.php";
$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
if($loginFoundUser){
$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");
exit;
}
}
?><?php
// 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
?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["Register_x"])){
WA_DFP_UploadFiles("WA_UploadResult1", "PetImage", "0", "", "JPG:80", $WA_UploadResult1_Params);
}
?><?php
// 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);
}
}
?><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>DogPedic Sleep System Pawsitively Fabulous Photo Contest</title>
<meta name="description" content="">
<meta name="keywords" content="" />
<meta name="author" content="TriStar Products, Inc - www.buydogpedic.com">
<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" />
</head>
<body>
<?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">
<h1>Registration</h1>
<table class="WAATKDataTable" cellpadding="0" cellspacing="0" border="0">
<tr>
<th>First Name:</th>
<td><input type="text" class="WAATKTextField" name="UserFirstName" id="UserFirstName" value="" size="32" /></td>
</tr>
<tr>
<th>Last Name:</th>
<td><input type="text" class="WAATKTextField" name="UserLastName" id="UserLastName" value="" size="32" /></td>
</tr>
<tr>
<th>Phone Number:</th>
<td><input type="text" class="WAATKTextField" name="UserPhone" id="UserPhone" value="" size="32" /></td>
</tr>
<tr>
<th>Email Address:</th>
<td><input type="text" class="WAATKTextField" name="UserEmail" id="UserEmail" value="" size="32" /></td>
</tr>
<tr>
<th>Password:</th>
<td><input type="password" class="WAATKTextField" name="UserPassword" id="UserPassword" value="" ></td>
</tr>
<tr>
<th>Pet Name:</th>
<td><input type="text" class="WAATKTextField" name="PetName" id="PetName" value="" size="32" /></td>
</tr>
<tr>
<th>Pet Image:</th>
<td><input name="PetImage" type="file" id="PetImage"></td>
</tr>
<tr>
<th>Contest Terms:</th>
<td><input type="checkbox" name="ContestTerms" id="ContestTerms" value="1" /></td>
</tr>
</table>
<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" />
</div>
</form>
</div>

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

Rob

Sign in to reply to this post

Jason ByrnesWebAssist

that looks correct.


Add the following at line 1 to see if a php error is occurring:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>




also add the debug info back in.

Sign in to reply to this post

robert329616

Jason,

Thanks. I received an error that the file I was tesing with was too large. It worked fine when I used a lower resolution file.

Should there be an error when I have DFP lower the res before upload?

With all the changes I have to go back and fix the double entries---much easier than this last issue.

Thanks again.
Rob

Sign in to reply to this post

Jason ByrnesWebAssist

changing the image resolution can use quite a lot of system resources, try adding the following at line of your upload file:
<?php ini_set('memory_limit', '256M'); ?>

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