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

rating

Email / Form authentication

Thread began 1/07/2010 1:29 pm by Alan Shaw | Last modified 1/08/2010 1:06 pm by Jason Byrnes | 1137 views | 3 replies |

Alan Shaw

Email / Form authentication

Don't know what this is but I'm sure somebody will.
I'd like to put a new booking form on my site, now that bit is easy, but I'd like to authenticate in some way with a signature.

Currently the customer submits a HTML form where the input is sent to a PHP file, I receive the details via email and at the same time, the customer receives a ‘Thank You’ email.

Now what I would like to do is somewhere along the lines of:
Customer submits form.
I receive form details via email
Customer receives confirmation to the email address submitted.

But then I’d like to add something like a link, whereby the customer has to reply to the link to authenticate that he/she was the person who sent the original email.

This would then act as an electronic signature.

Or do any of you have other / better ideas?

Sign in to reply to this post

Jason ByrnesWebAssist

you would need a database for this.

create a table in the database as follows:
emailID - primary Key
emailAddress - test: This will store the email address
randomString - text: this will store a random string
emailEncrypted - text: This will store an encrypted copy of the email address
verified: int: default value 0: this will be used to verify the email address.

when they fill out the form, store the email address, a random string and the encrypted email address in the database. The default value for the verified column should be set to 0 so any new record created will automatically be set to not verified.

Security Assist has a random password generator that can be used for the random string and SHA1 encryption that can be used to encrypt the email address.

In the email, you will send a link to a verification page, send the random string and the encrypted email as part of this link in querystring variables:
verify.php?rand=<Random String>&em=<encrypted email address>


On the verify.php page, create a recordset that will be used to look up the corect record based on the "rand" and "em" variables to find the value in the emailID column, then use the update record behavior to update the verified column for that record.

Sign in to reply to this post

Alan Shaw

Thanks Jason

Is there an actual term for what I am trying to do?

Is it something already covered in one of WebAssist's packages?

Sign in to reply to this post

Jason ByrnesWebAssist

No, not for what you are trying to do.

The closest would be Double Opt In used from Signing up to a news letter or for registration.


In the user registration solution pack, we do something similar:

The user registers and the account status is set to 0.

they are emailed a link to verify the account.

once they have verified the account the account status is updated to 1.

They cannot log into the suite until the account is verified.


This is a bit different than what you are trying to accomplish, but the principles are the same.

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