- Posts: 3
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
redirection: session-ID, tokens?
- joh
- Topic Author
- Offline
- New Member
Less
More
9 years 10 months ago #108105
by joh
redirection: session-ID, tokens? was created 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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
9 years 10 months ago - 9 years 10 months ago #108107
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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.
Attachments:
Last edit: 9 years 10 months ago by tpartner.
The topic has been locked.
- joh
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
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!!
<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.
- joh
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
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!
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.