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

rating

Disappearing Insert on Registration page

Thread began 12/09/2010 6:35 pm by bjgarner241692 | Last modified 12/10/2010 1:59 pm by bjgarner241692 | 1299 views | 6 replies |

bjgarner241692

Disappearing Insert on Registration page

I have run this wizard 4 times.
When it doesn't simply stop responding it creates pages without all of the necessary code. The Registration page has no insert code and the Profile page has no Update code.

Should have known better. Earlier this week I had to reinstall eCart 5 and since then it's been nothing but javascript errors. Data Assist had to be reinstalled as well.

Do I just reinstall Security Assist?

Extremely Frustrating! I wish your extensions would play together better!

Following is the entire code of the Registration page that is created.

php:
<?php

// *** Redirect if username exists
$MM_flag="MM_insert";
if (isset(
$_POST[$MM_flag])) {
  
$MM_dupKeyRedirect="students_duplicate.php";
  
$loginUsername $_POST['email'];
  
$LoginRS__query "SELECT email FROM students WHERE email='" $loginUsername "'";
  
mysql_select_db($database_conn$conn);
  
$LoginRS=mysql_query($LoginRS__query$conn) 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 
require_once('Connections/conn.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function 
GetSQLValueString($theValue$theType$theDefinedValue ""$theNotDefinedValue ""
{
  if (
PHP_VERSION 6) {
    
$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
$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 students (lastname, firstname, email, pwd) VALUES (%s, %s, %s, %s)",
                       
GetSQLValueString($_POST['lastname'], "text"), GetSQLValueString($_POST['firstname'], "text"), GetSQLValueString($_POST['email'], "text"), GetSQLValueString($_POST['pwd'], "text"));

  
mysql_select_db($database_conn$conn);
  
$Result1 mysql_query($insertSQL$conn) or die(mysql_error());

  
$insertGoTo "students_LogIn.php";
  if (isset(
$_SERVER['QUERY_STRING'])) {
    
$insertGoTo .= (strpos($insertGoTo'?')) ? "&" "?";
    
$insertGoTo .= $_SERVER['QUERY_STRING'];
  }
  
header(sprintf("Location: %s"$insertGoTo));
}
?>
<!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>lastname:</th>
        <td><input type="text" class="WAATKTextField" name="lastname" id="lastname" value="" size="32" /></td>
      </tr>
      <tr>
        <th>firstname:</th>
        <td><input type="text" class="WAATKTextField" name="firstname" id="firstname" value="" size="32" /></td>
      </tr>
      <tr>
        <th>email:</th>
        <td><input type="text" class="WAATKTextField" name="email" id="email" value="" size="32" /></td>
      </tr>
      <tr>
        <th>pwd:</th>
        <td><input type="text" class="WAATKTextField" name="pwd" id="pwd" value="" size="32" /></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>



Security Assist version is 1.1.8

Sign in to reply to this post

bjgarner241692

Attempt 6 with v 1.1.9 produces the exact same result.

php:
<?php

// *** Redirect if username exists
$MM_flag="MM_insert";
if (isset(
$_POST[$MM_flag])) {
  
$MM_dupKeyRedirect="students_duplicate.php";
  
$loginUsername $_POST['email'];
  
$LoginRS__query "SELECT email FROM students WHERE email='" $loginUsername "'";
  
mysql_select_db($database_conn$conn);
  
$LoginRS=mysql_query($LoginRS__query$conn) 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 
require_once('Connections/conn.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function 
GetSQLValueString($theValue$theType$theDefinedValue ""$theNotDefinedValue ""
{
  if (
PHP_VERSION 6) {
    
$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
$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 students (lastname, firstname, email, pwd) VALUES (%s, %s, %s, %s)",
                       
GetSQLValueString($_POST['lastname'], "text"), GetSQLValueString($_POST['firstname'], "text"), GetSQLValueString($_POST['email'], "text"), GetSQLValueString($_POST['pwd'], "text"));

  
mysql_select_db($database_conn$conn);
  
$Result1 mysql_query($insertSQL$conn) or die(mysql_error());

  
$insertGoTo "students_LogIn.php";
  if (isset(
$_SERVER['QUERY_STRING'])) {
    
$insertGoTo .= (strpos($insertGoTo'?')) ? "&" "?";
    
$insertGoTo .= $_SERVER['QUERY_STRING'];
  }
  
header(sprintf("Location: %s"$insertGoTo));
}
?>
<!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>lastname:</th>
        <td><input type="text" class="WAATKTextField" name="lastname" id="lastname" value="" size="32" /></td>
      </tr>
      <tr>
        <th>firstname:</th>
        <td><input type="text" class="WAATKTextField" name="firstname" id="firstname" value="" size="32" /></td>
      </tr>
      <tr>
        <th>email:</th>
        <td><input type="text" class="WAATKTextField" name="email" id="email" value="" size="32" /></td>
      </tr>
      <tr>
        <th>pwd:</th>
        <td><input type="text" class="WAATKTextField" name="pwd" id="pwd" value="" size="32" /></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

bjgarner241692

By moving this:

php:
<?php require_once('Connections/conn.php'); ?>

<?php
if (!function_exists("GetSQLValueString")) {
function 
GetSQLValueString($theValue$theType$theDefinedValue ""$theNotDefinedValue ""
{
  if (
PHP_VERSION 6) {
    
$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;
}
}
?>


to the top I can at least get the record to insert, but DW still says that the Insert Behaviour is missing. I've opened older pages that I have created and it's the same thing.

Check Name has an Exclamation mark next to it and if you double click it says the insert behaviour has been deleted.

Sign in to reply to this post

bjgarner241692

Next:
User can now Register - goes to Login page
Login fails and user is redirected to failture page.
Removed Page Access code from user profile page, logged in again, works fine so username and password are fine.
Inserted page access code again on user profile page, refreshed page, login fails.

login page

php:
<?php

if (!isset($_SESSION)) {
  
session_start();
}
?>
<?php 
require_once('Connections/conn.php');?>
<?php 
require_once( "WA_SecurityAssist/Helper_PHP.php" ); ?><?php
if ((((isset($_POST["autologinoption"]))?$_POST["autologinoption"]:"") != ""))     {
  
setcookie("AutoLoginPWD""".((isset($_POST["userpassword"]))?$_POST["userpassword"]:"")  .""time()+(60*60*24*30), "/"""0);
}
?><?php
if ((((isset($_POST["autologinoption"]))?$_POST["autologinoption"]:"") != ""))     {
  
setcookie("AutoLoginUN""".((isset($_POST["username"]))?$_POST["username"]:"")  .""time()+(60*60*24*30), "/"""0);
}
?><?php
if ((((isset($_POST["remembermeoption"]))?$_POST["remembermeoption"]:"") != ""))     {
  
setcookie("RememberMePWD""".((isset($_POST["userpassword"]))?$_POST["userpassword"]:"")  .""time()+(60*60*24*30), "/"""0);
}
?><?php
if ((((isset($_POST["remembermeoption"]))?$_POST["remembermeoption"]:"") != ""))     {
  
setcookie("RememberMeUN""".((isset($_POST["username"]))?$_POST["username"]:"")  .""time()+(60*60*24*30), "/"""0);
}
?><?php
if (isset($_POST["LogIn_x"]) && !isset($_POST["remembermeoption"]))     {
  
setcookie("RememberMePWD"""time()+(60*60*24*30), "/"""0);
}
?><?php
if (isset($_POST["LogIn_x"]) && !isset($_POST["remembermeoption"]))     {
  
setcookie("RememberMeUN"""time()+(60*60*24*30), "/"""0);
}
?>
<?php
if($_SERVER["REQUEST_METHOD"] == "POST"){
    
$WA_Auth_Parameter = array(
    
"connection" => $conn,
    
"database" => $database_conn,
    
"tableName" => "students",
    
"columns" => explode($WA_Auth_Separator,"email".$WA_Auth_Separator."pwd"),
    
"columnValues" => explode($WA_Auth_Separator,"".((isset($_POST["username"]))?$_POST["username"]:"")  ."".$WA_Auth_Separator."".((isset($_POST["userpassword"]))?$_POST["userpassword"]:"")  .""),
    
"columnTypes" => explode($WA_Auth_Separator,"text".$WA_Auth_Separator."text"),
    
"sessionColumns" => explode($WA_Auth_Separator,"stID"),
    
"sessionNames" => explode($WA_Auth_Separator,"stID"),
    
"successRedirect" => "students_Profile.php",
    
"failRedirect" => "students_EmailPW.php",
    
"gotoPreviousURL" => TRUE,
    
"keepQueryString" => TRUE
    
);
    
    
WA_AuthenticateUser($WA_Auth_Parameter);
}
?>
<?php
if((((isset($_SESSION["stID"]) && $_SESSION["stID"] != "")?"LoggedIn":"") == "")&&(((isset($_COOKIE["AutoLoginUN"]))?$_COOKIE["AutoLoginUN"]:"") != "")&&(((isset($_COOKIE["AutoLoginPWD"]))?$_COOKIE["AutoLoginPWD"]:"") != "")){
    
$WA_Auth_Parameter = array(
    
"connection" => $conn,
    
"database" => $database_conn,
    
"tableName" => "students",
    
"columns" => explode($WA_Auth_Separator,"email".$WA_Auth_Separator."pwd"),
    
"columnValues" => explode($WA_Auth_Separator,"".((isset($_COOKIE["AutoLoginUN"]))?$_COOKIE["AutoLoginUN"]:"")  ."".$WA_Auth_Separator."".((isset($_COOKIE["AutoLoginPWD"]))?$_COOKIE["AutoLoginPWD"]:"")  .""),
    
"columnTypes" => explode($WA_Auth_Separator,"text".$WA_Auth_Separator."text"),
    
"sessionColumns" => explode($WA_Auth_Separator,"stID"),
    
"sessionNames" => explode($WA_Auth_Separator,"stID"),
    
"successRedirect" => "students_Profile.php",
    
"failRedirect" => "",
    
"gotoPreviousURL" => TRUE,
    
"keepQueryString" => TRUE
    
);
    
    
WA_AuthenticateUser($WA_Auth_Parameter);
}
?>
<!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>Log In</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="LogInContainer" class="WAATK">
  <form  action="<?php echo ($_SERVER["PHP_SELF"].(isset($_SERVER["QUERY_STRING"])?"?".htmlentities($_SERVER["QUERY_STRING"]):""));?>" method="post" name="WAATKLogInForm" id="WAATKLogInForm">
    <h1>Log In</h1>
    <table class="WAATKDataTable" cellpadding="0" cellspacing="0" border="0">
      <tr>
        <th>User name</th>
        <td><input type="text" class="WAATKTextField" name="username" value="<?php echo((isset($_COOKIE["RememberMeUN"]) && isset($_COOKIE["RememberMePWD"]))?$_COOKIE["RememberMeUN"]:""?>" /></td>
      </tr>
      <tr>
        <th>Password</th>
        <td><input type="password" class="WAATKTextField" name="userpassword" value="<?php echo((isset($_COOKIE["RememberMePWD"]))?$_COOKIE["RememberMePWD"]:""?>" /></td>
      </tr>
      <tr>
        <th class="WAATKDataTableHeader"><input type="checkbox" name="remembermeoption" <?php echo((isset($_COOKIE["RememberMeUN"]))?"checked":""?> value="1" /></th>
        <td class="WAATKDataTableCell">Remember me</td>
      </tr>
      <tr>
        <th class="WAATKDataTableHeader"><input type="checkbox" name="autologinoption"  value="1" /></th>
        <td class="WAATKDataTableCell">Auto log in</td>
      </tr>
    </table>
    <div class="WAATKButtonRow">
      <input type="image" hspace="0" vspace="0" border="0" name="LogIn" id="LogIn" value="Log In" alt="Log In"  src="WA_SecurityAssist/images/Pacifica/Refined_login.gif"  />
    </div>
  </form>
</div>
</body>
</html>
Sign in to reply to this post

bjgarner241692

Profile Page:

php:
<?php

if (!isset($_SESSION)) {
  
session_start();
}
?>
<?php 
require_once('Connections/conn.php'); ?>
<?php 
require_once( "WA_SecurityAssist/Helper_PHP.php" ); 
if (!
WA_Auth_RulePasses("Logged in to students")){
    
WA_Auth_RestrictAccess("students_EmailPW.php");
}

if (!
function_exists("GetSQLValueString")) {
function 
GetSQLValueString($theValue$theType$theDefinedValue ""$theNotDefinedValue ""
{
  if (
PHP_VERSION 6) {
    
$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
$editFormAction 
$_SERVER['PHP_SELF'];
if (isset(
$_SERVER['QUERY_STRING'])) {
  
$editFormAction .= "?" htmlentities($_SERVER['QUERY_STRING']);
}

?>
<?php
if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "WAATKUpdateForm")) {
  
$updateSQL sprintf("UPDATE students SET lastname=%s, firstname=%s, pwd=%s WHERE stID=%s",
                       
GetSQLValueString($_POST['lastname'], "text"), GetSQLValueString($_POST['firstname'], "text"), GetSQLValueString($_POST['pwd'], "text"), GetSQLValueString($_POST['stID'], "text"));

  
mysql_select_db($database_conn$conn);
  
$Result1 mysql_query($updateSQL$conn) or die(mysql_error());

  
$updateGoTo "students_Profile.php";
  if (isset(
$_SERVER['QUERY_STRING'])) {
    
$updateGoTo .= (strpos($updateGoTo'?')) ? "&" "?";
    
$updateGoTo .= $_SERVER['QUERY_STRING'];
  }
  
header(sprintf("Location: %s"$updateGoTo));
}
?>
<?php
$ParamstID_WAATKstudents 
"-1";
if (isset(
$_SESSION['stID'])) {
  
$ParamstID_WAATKstudents = (get_magic_quotes_gpc()) ? $_SESSION['stID'] : addslashes($_SESSION['stID']);
}
mysql_select_db($database_conn$conn);
$query_WAATKstudents sprintf("SELECT * FROM students WHERE stID = %s"$ParamstID_WAATKstudents);
$WAATKstudents mysql_query($query_WAATKstudents$conn) or die(mysql_error());
$row_WAATKstudents mysql_fetch_assoc($WAATKstudents);
$totalRows_WAATKstudents mysql_num_rows($WAATKstudents);
?>
<!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>Profile</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="UpdateContainer" class="WAATK">
  <?php if ($totalRows_WAATKstudents 0) { // Show if recordset not empty ?>
    <form  action="<?php echo $editFormAction?>" method="post" name="WAATKUpdateForm" id="WAATKUpdateForm">
      <h1>Profile</h1>
      <table class="WAATKDataTable" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <th>lastname:</th>
          <td><input type="text" class="WAATKTextField" name="lastname" id="lastname" value="<?php echo(str_replace('"''&quot;'$row_WAATKstudents['lastname'])); ?>" size="32" /></td>
        </tr>
        <tr>
          <th>firstname:</th>
          <td><input type="text" class="WAATKTextField" name="firstname" id="firstname" value="<?php echo(str_replace('"''&quot;'$row_WAATKstudents['firstname'])); ?>" size="32" /></td>
        </tr>
        <tr>
          <th>email:</th>
          <td><?php echo(str_replace('"''&quot;'$row_WAATKstudents['email'])); ?></td>
        </tr>
        <tr>
          <th>pwd:</th>
          <td><input type="text" class="WAATKTextField" name="pwd" id="pwd" value="<?php echo(str_replace('"''&quot;'$row_WAATKstudents['pwd'])); ?>" size="32" /></td>
        </tr>
      </table>
      <div class="WAATKButtonRow">
        <input type="image" hspace="0" vspace="0" border="0" name="Update" id="Update" value="Update" alt="Update"  src="WA_SecurityAssist/images/Pacifica/Refined_update.gif"  />
        <input name="stID" type="hidden" id="WAATKUpdateRecordID" value="<?php echo(rawurlencode($row_WAATKstudents['stID'])); ?>">
        <input type="hidden" name="MM_update" value="WAATKUpdateForm">
      </div>
    </form>
  <?php // Show if recordset not empty ?>
  <?php if ($totalRows_WAATKstudents == 0) { // Show if recordset empty ?>
    <div>No record found.</div>
  <?php // Show if recordset empty ?>
</div>
</body>
</html>
<?php
mysql_free_result
($WAATKstudents);
?>



All code is straight fromt he wizard with the exception that I removed the extra conn string from the profile page. That's pretty common with these behaviours. Strings are inserted pretty much every time you edit a behaviour.

Sign in to reply to this post

Jason ByrnesWebAssist

the only issue i see on he original registration page is the location of the connection require once line, it should be moved to line 1 so the connection is defined before the check new user name function.

For the login issue, are you testing remotely or locally?

If testing remotely, make sure that the WA_SecurityAssist folder is being uploaded to the server. If you are still having a problem, add the following code after the body tag on the profile page so i can see the sessions being set:
<?php var_dump($_SESSION); ?>

and send a copy of the WA_SecurityAssist/HelperGroupRules.php page.


I've tried testing on Windows 7, Vista and Mac OS using Security Assist 1.1.8 and 1.1.9 in DWCS4 and DWCS5 and i cannot recreate the issue you are reporting. I tested both before and after installing EC5 and DA2.

Sign in to reply to this post

bjgarner241692

Login works - apparently the WA_Security folder did not upload earlier.

Still though, in DW, you cannot bring up the Insert Behaviour on this page and the Check Names behaviour shows an error.

As for the order that the code is generated in, why does it do it wrong?

I should be able to run one of your wizards and get a properly functioning page that I can edit using your tools.

This is a new problem on my system, so I am sure it is the usual problem with your WA extensions. Depending on the order in which you install them they work or they don't because too often one extension overwrites files needed by another extension.

The frustrating thing is that the fix is ridiculous - remove all the extensiond replace them until yet another set of WA script errors starts popping up.

Sign in to reply to this post

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