Welcome to the LimeSurvey Community Forum

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

passing parameters in PHP

  • vama
  • vama's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 1 month ago #133174 by vama
passing parameters in PHP was created by vama
I have an issue. we have a drupal website where i have access to see a video and give feedback to the video by clicking the button "Leave Feedback"(internally this iwll go to survey page to another application) . my requirement is to pre-populate the survey, I need to supply parameters through the URL customer email,video id and video name. these details should not be visible to the user in the URL.

The survey system that i use only GET method to retrieve information from URL and populate answers to the survey questions.
I tried to use POST method in scripts to supply parameters in a hidden manner. (using HTML POST and Javascript POST) It didn’t work. Looks like the survey system will not read from POST methods for security reasons.



pls let me know the possible options for this.
Attachments:
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 1 month ago #133176 by DenisChenu
Replied by DenisChenu on topic passing parameters in PHP
Yes : CRSF issue : we don't read post.

2 solution :
1. deactivate CRSF : manual.limesurvey.org/Optional_settings#Request_settings
2. Create a plugin or use LimeSUrvey API to prepoulate reponse table

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: vama
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose