I would like to share some code I wrote up for phpsurveyor. I have no experience in php but know C++ so with some help from the mighty internet i put this together. Use it if you wish.
Basically it's a contest form that a user is redirected to once a survey is completed. Sometimes it's nice to include a contest to encourage users to finish a survey. I only wanted users with a token to sign up for the contest and I put mesures into place so that the user can not sign up for the contest multiple times. I posted a .zip file and a link to the file with all the code.
Some modifying was done in phpsurveyor so that the exit page URL also returned the token ID using GET. example : s.php?t=123
Basically I use the attribute_1 field (I don't use attributes) in the tokens_x table to set a value to true if the form was completed. The form will not load if a user tries to resend the whole affair again with the same token. The results of the form are stored in another database.
Cheers!
John
heres a url to download the code
www.deepwoodslive.com/dev_files.zip