Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Determine if survey has been succesfully submitted

Determine if survey has been succesfully submitted 3 years 4 months ago #98303

  • rvas
  • rvas's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 7
  • Thank you received: 1
  • Karma: 1
Hi all,

I have created a small PHP script where a user can enter his/her email address that is subsequently stored in a SQL database. I want to anonymously collect e-mail addresses in order to build a separate list unrelated to the survey answers for prize winning purposes. I was wondering if there is a way by e.g. using cookies or manipulating PHP session, to determine if a survey has been successfully submitted. The script is in the same domain. Thank you very much in advance!

P.S. Perhaps I could create a cookie using Javascript in the Limesurvey End message, but would this be a safe solution?
Last Edit: 3 years 4 months ago by rvas.
The administrator has disabled public write access.

Determine if survey has been succesfully submitted 3 years 4 months ago #98334

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9572
  • Thank you received: 1374
  • Karma: 390
You can use GET param on end url.

And catch limesurvey $_SESSION var to in the expernal script.

Denis
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (use private message).
The administrator has disabled public write access.
Time to create page: 0.207 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form