Determine if survey has been succesfully submitted

More
4 years 2 months ago - 4 years 2 months ago #98303 by rvas
rvas created the topic: Determine if survey has been succesfully submitted
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: 4 years 2 months ago by rvas.

Please Log in to join the conversation.

More
4 years 2 months ago #98334 by DenisChenu
DenisChenu replied the topic: Determine if survey has been succesfully submitted
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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now