- Posts: 11
- Thank you received: 4
Ask the community, share ideas, and connect with other LimeSurvey users!
<meta http-equiv="refresh" content="0;url=https://example.org/myscript.php?savedid{SAVEDID}&token={TOKEN}">
public function afterSurveyComplete() { $surveyId =$this->getEvent()->get('surveyId'); $token = isset($_SESSION['survey_'.$surveyId]['token'] ? $_SESSION['survey_'.$surveyId]['token'] : null; if($token) { // There are surely another way to call a py script ??? $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://localhost:8080/cgi-bin/Psychiatric%20Diagnostic%20Interview%20Print.py?surveyid=".$surveyId."&urltoken=".$token); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $output = curl_exec($ch); curl_close($ch); } }