Check out the LimeSurvey source code on GitHub!

Connecting to MySQL Database

More
5 years 9 months ago #60232 by milenyo
We need to make questions that will contain the country of the person whom the survey is sent to.

When we use PHP code the codes would disapear or lost.

Please Log in to join the conversation.

More
5 years 9 months ago #60254 by pwmowers
From the way your question is worded, I am assuming that you already know the recipient's country. You could put it in an attribute with the token table,then have a question which would then store the value of the token in the question database. I recently did a project where we encoded the survey subject this way, so that we could store and retrieve the subject with the evaluation.

If you do not know the country, you might capture the IP address, and determine it that way. There are many programs available to do this. Websites use it to target ads to your locale.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form