Page 1 of 1

Form that generates unique link for each visitor

Posted: Thu May 13, 2010 10:08 am
by lsterling03
Hello,

I am a complete beginner with PHP. What I'm asking for may already be created somewhere, but I'm not even sure how to search for what I'm asking for. Here is what I want to do:

My client (let's call him Bob) has an online demo of a product on his website. Bob wants his visitors to have to fill out a form first, before they can see the demo. After they fill out the form, it won't take the visitor directly to the demo. Instead, it will send the form results in an email to Bob along with a unique link to view the demo. Then Bob will personally email this visitor, along with the unique link to the demo. This unique link will let him know which visitor watched the demo.

He currently has this system in place on his old website but his current web company will not give him access to the php files so I can just use what they used. Do you know how I could do this, or where I could find pre-written code? I don't have the skills to be able to do this myself in the time allotted.

Thank you!

Re: Form that generates unique link for each visitor

Posted: Thu May 13, 2010 10:09 am
by lsterling03
If it matters, I'm using Wordpress as his content management system. I tried installing a shopping cart plugin, thinking I could accomplish the same thing with a digital download feature, but no such luck.

Thanks!

Re: Form that generates unique link for each visitor

Posted: Thu May 13, 2010 12:39 pm
by ell0bo
Odds are you're going to be at least giving every visitor some sort of ID. Either as a user that can log in or a user that is simply ordering something. Just take their ID and run it through a hash generator (I'll let you figure that out) and then construct the link from that hash e.g....

/order.php?hash=asdgeRc12fsE324

You save that hash with the order or the user in the DB so you can recall it later.

How to tie that in with Wordpress... dunno, but that's the general gist.