close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

SA-Encrypt Password NOT sending email

Thread began 8/11/2010 3:00 pm by sadie406824 | Last modified 8/20/2010 2:42 pm by sadie406824 | 1934 views | 22 replies

sadie406824

Ok Jason, I did exactly as you said & now I am in a loop - Working only on the emailPW page I added the PHP code snippet to the very tip top of my page. and I deleted the following code.

php:
<?php  

// WA Application Builder Update 
if (isset($_POST["update"])) // Trigger 

  
$WA_connection $rrs
  
$WA_table "visitors"
  
$WA_redirectURL "visitors_Profile.php"
  
$WA_keepQueryString false
  
$WA_indexField "VisitorID"
  
$WA_fieldNamesStr "VisitorPassword"
  
$WA_fieldValuesStr "".((isset($_COOKIE[""]))?$_COOKIE[""]:"")  .""
  
$WA_columnTypesStr "',none,''"
  
$WA_comparisonStr "="
  
$WA_fieldNames explode("|"$WA_fieldNamesStr); 
  
$WA_fieldValues explode("|"$WA_fieldValuesStr); 
  
$WA_columns explode("|"$WA_columnTypesStr); 
   
  
$WA_where_fieldValuesStr "".$_SESSION['VisitorID']  .""
  
$WA_where_columnTypesStr "',none,''"
  
$WA_where_comparisonStr "="
  
$WA_where_fieldNames explode("|"$WA_indexField); 
  
$WA_where_fieldValues explode("|"$WA_where_fieldValuesStr); 
  
$WA_where_columns explode("|"$WA_where_columnTypesStr); 
  
$WA_where_comparisons explode("|"$WA_where_comparisonStr); 
   
  
$WA_connectionDB $database_rrs
  
mysql_select_db($WA_connectionDB$WA_connection); 
  if (!
session_id()) session_start(); 
  
$updateParamsObj WA_AB_generateInsertParams($WA_fieldNames$WA_columns$WA_fieldValues, -1); 
  
$WhereObj WA_AB_generateWhereClause($WA_where_fieldNames$WA_where_columns$WA_where_fieldValues,  $WA_where_comparisons ); 
  
$WA_Sql "UPDATE `" $WA_table "` SET " $updateParamsObj->WA_setValues " WHERE " $WhereObj->sqlWhereClause ""
  
$MM_editCmd mysql_query($WA_Sql$WA_connection) or die(mysql_error()); 
  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); 
  } 

?>


After deleting the code I went to login with my stored username and entered a fake password on the emailPW page, I receive the encrypted password via email, I copy the password and paste it in to the log in page (tried typing several times as well), and it takes me back to the emailPW page. I did not see the error message that I sent you. Now It doesn't let me sign in and keeps looping me back to the emailPW.

You had said I had two instances of the above code in my script, but there was only once instance of the update code in my script??? I deleted as you had asked and now i am even worse than before?? Please advise?

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