redirection: session-ID, tokens?

More
3 years 2 months ago #108105 by joh
joh created the topic: redirection: session-ID, tokens?
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

Please Log in to join the conversation.

More
3 years 2 months ago - 3 years 2 months ago #108107 by tpartner
tpartner replied the 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: 3 years 2 months ago by tpartner.

Please Log in to join the conversation.

More
3 years 2 months ago #108108 by joh
joh replied the 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!!

Please Log in to join the conversation.

More
3 years 2 months ago #108136 by joh
joh replied the 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!

Please Log in to join the conversation.

Did you already participate in our customer survey?

Don't miss your chance for great prices.

Please click here to participate:

Start now

Start now!

Just create your account and start using Limesurvey today.

Register now