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

Double opt in email Verification Code line coming in multiples - error with user verify page.

Thread began 8/07/2014 6:41 pm by rgolab68503 | Last modified 8/08/2014 2:29 pm by Jason Byrnes | 381 views | 3 replies |

rgolab68503

Double opt in email Verification Code line coming in multiples - error with user verify page.

Hi Jason.

ot past the email problem but now as I receive the emails it is received with multiples of the same Verification Code.

Please verify you're an actual person by clicking on the link below.
Form Submitted: 8-7-2014 | 10:35 PM UTC
Verification code: Click here to verify your email address.


Verification code: Click here to verify your email address.


Verification code: Click here to verify your email address.


Verification code: Click here to verify your email address.


Verification code: Click here to verify your email address.


Verification code: Click here to verify your email address.


Verification code: Click here to verify your email address.


Verification code: Click here to verify your email address.


Verification code: Click here to verify your email address.


Verification code: Click here to verify your email address.


Verification code: Click here to verify your email address.


Verification code: Click here to verify your email address.


Verification code: Click here to verify your email address.


Verification code: Click here to verify your email address.


Verification code: Click here to verify your email address.


Verification code: Click here to verify your email address.


Verification code: Click here to verify your email address.


Verification code: Click here to verify your email address.


Then when i click on the any of the links i get the same error from any of the links pressed.

( ! ) Notice: Undefined variable: totalRows_rsVerify in C:\wamp\www\toyo_dev\login\user-confirm.php on line 4
Call Stack
# Time Memory Function Location
1 0.0025 448088 {main}( ) ..\user-confirm.php:0
Unknown column 'users.randomString' in 'where clause'

Line 4 caries the session start code:

<?php
@session_start();
if(!($totalRows_rsVerify == 0)) {
$_SESSION["emailVerified"] = "1";
}
?>

i have gone through the tutorial several times to make sure everything is set properly and in my thinking everything is correct.It originally looked like it was seeing the randomString column in the database but I triple checked that the spelling is consistent and it definitely is in the database and the registration process does write to it.

Any ideas?

Sign in to reply to this post

Jason ByrnesWebAssist

in the blank templatefile, ther eis a code block to loop through the form elements, you have the link is this loop.

change:

<?php
foreach( $_POST as $pkey => $pval ){
if (!RemoveValue($pkey,$remove,$removeBegins,$removeEnds,$removeIncludes)) {
if (get_magic_quotes_gpc()) $pval = stripslashes((is_array($pval)?implode(", ",$pval):$pval));
?>
<tr valign="top">
<th style="font-size: 12px; width: 134px; text-align: right; padding: 3px 10px 3px 3px; font-weight: bold;">Verification code:</th>
<td style="font-size: 12px; padding: 3px;"><a href="http://dev.toyosupport.ca/login/user-confirm.php?id=<?php echo $_SESSION['SecurityAssist_IDemail']; ?>&randomString=<?php echo $_SESSION['rpw']; ?>&email=<?php echo((isset($_POST["Registration_group_5_Email_Address"]))?$_POST["Registration_group_5_Email_Address"]:"") ?>">Click here to verify your email address.</a></td>
</tr>
<tr valign="top">
<th style="font-size: 12px; width: 134px; text-align: right; padding: 3px 10px 3px 3px; font-weight: bold;">&nbsp;</th>
<td style="font-size: 12px; padding: 3px;">&nbsp;</td>
</tr>
<?php
}
}
?>




to:

<tr valign="top">
<th style="font-size: 12px; width: 134px; text-align: right; padding: 3px 10px 3px 3px; font-weight: bold;">Verification code:</th>
<td style="font-size: 12px; padding: 3px;"><a href="http://dev.toyosupport.ca/login/user-confirm.php?id=<?php echo $_SESSION['SecurityAssist_IDemail']; ?>&randomString=<?php echo $_SESSION['rpw']; ?>&email=<?php echo((isset($_POST["Registration_group_5_Email_Address"]))?$_POST["Registration_group_5_Email_Address"]:"") ?>">Click here to verify your email address.</a></td>
</tr>
<tr valign="top">
<th style="font-size: 12px; width: 134px; text-align: right; padding: 3px 10px 3px 3px; font-weight: bold;">&nbsp;</th>
<td style="font-size: 12px; padding: 3px;">&nbsp;</td>
</tr>



on the user-confirm page, the code to set the session comes before the code for the recordset.

the recordset code ends at line 59, the session code needs to come after that.

Sign in to reply to this post

rgolab68503

Thanks Jason

The email now shows one link.

I was still getting a "Unknown column 'users.randomString' in 'where clause'" when I click the link and it goes to the user-confirm.php page.

Totally my fault!! You can see below I simply copied the text from the tutorial forgetting that MY users database is not called "users" but "entry". Below I use users.randomString <> '0' in the where clause rather than what it should be entry.randomString <> '0'

SELECT *
FROM entry
WHERE ID = colname AND entry.randomString = paramrandomString AND entry.EmailAddress = paramemail AND users.randomString <> '0'

"Double opt in" works great now.

Sign in to reply to this post

Jason ByrnesWebAssist

glad to hear it's working.

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