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


Creating Conditional Activation page

Thread began 3/03/2010 7:48 am by Walikan | Last modified 3/04/2010 12:23 pm by Jason Byrnes | 858 views | 3 replies |


Creating Conditional Activation page

I generated userRegistration, userlogin, userlogout, userEmailPW, userProfile pages using SA. Also, I have an activation page with one form field element(Activation Number). Below is what I will like to accomplish:

1) When my first time registrant completes the userRegistration form, the registrant is redirected to Activation page(that I can do).

2) An email is immediately send to the form owner indicating that a first time registrant has registered.

NOTE: The registrant cannot login yet until the registrant is provided an Activation number. If the first time registrant tries to login, the registrant will be redirected to the Activation page until he completes the activation page. That is, new or first time registrant should follow the schematic below

Registration page --------->Activation page --------->login page

3) After receiving the email, the form owner sends the Activation Number to the client. The form owner will manually enter the Activation number in the dbase and sends the same number through email to the registrant. When the registrant enters the provided activation number in the activation page, then the registrant is the redirected to the login page. A conditional statement is set such that the First time registrant MUST follow the above schematic, otherwise the registrant will not be able to login.

4) Thereafter, the registrant can login. I know I have to use session variable in the Activation page to verify the provided Activation number, but what should I do such that new registrant follow the schematic?
But if a client had previously registered, then the client can login directly without necessarily going through the above schematic.

Any help will be greatly appreciated
Thanks in advance

Sign in to reply to this post

Jason ByrnesWebAssist

This can be accomplished using a combination of:
Data Assist
Security Assist
Cookies Toolkit
Universal Email.

First you would need to create 2 new columns in the database table that holds the users email address and other information when the sign up. one to indicate whether the email address has been verified (You will need to determine how to indicate verified or not, you could use 1 and 0) and the other to hold a random string.

On the registration page, go to the bindings Tab and click the plus button and select Security Assist -> Random Password. On the Server behaviors tab click the Plus button and select WA Cookies Toolkit -> Set Session Value server behavior. This will produce the random string to insert into the database. These steps are outlined in the Security Assist Solution Recipe on the security Assist product detail page in the Updating Send Password section.

When the form is submitted, you will store the entered information in the database using the Data Assist Insert record server behavior. Set the Verified column to 0 (Unverified) and insert the random string (Or random password generated ion the previous step) in the column that you set up to hold the random string.

In the Data Assist Insert Record UI There is a section For setting the session variable. Set the Key Column to the Primary Key and Chose a memorable name for the session variable. This will be used in the email.

Then add Universal email to send an email to the address entered to ask them to verify the address. you will include a link in the email address that will go to another page that you create to look up the address and if found, update the record to be verified.

Lets assume that your domain is and the page you created is verify.php. the email will send a link to that page and pass the ID of the record that was created by Data Assist Insert Record and the random string:

<a href="<?php echo($_SESSION['IDSessionVar'])?>&rand=<?php echo['RandomPasswordSessionVar']?>">Please Verify your Email</a>

On the verify page, you would create a recordset to lookup the record by filtering the ID column on the "id" Querystring parameter and the random column on the "rand" querystring parameter in the link. If the email address is found, then use the WA Update Record server behavior to set the Verified column to 1 to indicate that the email has been verified.

On the login page, double click the authenticate user server behavior. On the second page, add another condition to log in. Select the verified column and set the value to one.

This will restrict login to only allow if the Verified column is set to 1.

Sign in to reply to this post


Hello Support,
You are why we keep coming back to buy more WebAssist products. Thanks a lot for your help. I will give it a try and get back to you if I have any problem.

Sign in to reply to this post

Jason ByrnesWebAssist

You're welcome.

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





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