Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

redirection: session-ID, tokens?

More
9 years 10 months ago #108105 by joh
Hi,

I'd like to display the results of the questionnaire, but I don't want to use expression manager for different reasons. I've already programmed a php-based analysis, but I still need to get the session ID or another reference such as a token to make sure that each participant receives his results. :huh:
Any ideas where to find these?

Regards, Jo
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 10 months ago - 9 years 10 months ago #108107 by tpartner
Replied by tpartner on topic redirection: session-ID, tokens?
Try using the {SAVEDID} variable which is available after the first question screen has been submitted.




.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 9 years 10 months ago by tpartner.
The topic has been locked.
More
9 years 10 months ago #108108 by joh
Replied by joh on topic redirection: session-ID, tokens?
Many thanks, I found SAVEDID in replacements_helper.php and tried to start my program the following way, but it doesn't work:


<html>
<body>
<?php
$server = "";
$datenbank = "";
$username = "";
$password = "";

require_once('/application/helpers/replacements_helper.php');

$link=mysql_connect($server, $username, $password);
mysql_select_db($datenbank);
$db_selected = mysql_select_db($datenbank, $link);


$slq = "select * from lime_survey_719235";
$slq .= " where id = [SAVEDID]";

$re = mysql_query($slq);



obviously, I'm a newbie in programming and any additional comment would help me!!
The topic has been locked.
More
9 years 10 months ago #108136 by joh
Replied by joh on topic redirection: session-ID, tokens?
problem solved!
sorry, I should have read first the manual first.

For all with the same problem:
manual.limesurvey.org/URL_fields


thanks to LS!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose