CGI POST/GET Issue

mlapl1
Community Member Posts: 350 ☆ Roadie ☆
Hello
Still playing with Lectora... I have a question about CGI scripts. I would like to send a variable to a php script. I know that Lectora provides an option for using GET and POST, but it seems to do it only within a form. Is that correct? The documentation also mentions surveys and test results but...
(a) I do not want to return test or survey results and
(b) the form seems to be entirely empty (which is a bit strange) and
(c) In any case I do not want to use a form as such, although I suppose a form can be referenced somehow as the vehicle of the POST/GET
BTW what happened to the OLD forum messages? I have some in my email but the picture is not complete and I had some great help given by sng??? (Sergey??)
I hope the above makes sense.
Thanks
Andre
Still playing with Lectora... I have a question about CGI scripts. I would like to send a variable to a php script. I know that Lectora provides an option for using GET and POST, but it seems to do it only within a form. Is that correct? The documentation also mentions surveys and test results but...
(a) I do not want to return test or survey results and
(b) the form seems to be entirely empty (which is a bit strange) and
(c) In any case I do not want to use a form as such, although I suppose a form can be referenced somehow as the vehicle of the POST/GET
BTW what happened to the OLD forum messages? I have some in my email but the picture is not complete and I had some great help given by sng??? (Sergey??)
I hope the above makes sense.
Thanks
Andre
Comments
-
Hi
1. Go to Test/Survey tab, add a Form, set it up (URL, POST/GET)
2. Now SUPPOSEDLY you should be able to select the "Submit ALL variable values" but it is always disabled for me for some reason.
3. So here's a workaround. Add a text entry to your form. Move it off the page, nobody needs to see it. Add an action to it: "On Show > Change Contents > Target: This entry field > Value: Variable_That_You_Have_To_Submit". Now you can submit the form and it'll contain the text field value, which is your variable value. Do this for all variables you have to submit.
Hope this helps. I really appreciate if someone (@dfleary?) could remind me why the "submit ALL variables" checkbox isn't active. I think someone explained it a while back but I guess I forgot.
Best,
Sergey
Categories
- 4.7K All Categories
- 3 New Feature Releases
- The Training Arcade®
- Arcades™
- 56 ✫ Announcements
- 6 ✪ Contests
- 34.1K eLearning Brothers® Products
- 33.6K Lectora®
- 31.6K Lectora Discussions
- 1.9K Lectora Feature Requests
- 64 Lectora User Groups
- 16 Asset Library
- 10 AssetLibrary Discussions
- 6 AssetLibrary Feature Requests
- 286 CenarioVR®
- 166 CenarioVR Discussions
- 120 CenarioVR Feature Requests
- 29 Rockstar Learning Platform®
- 20 Rockstar Learning Platform Discussions
- 9 Rockstar Learning Platform Feature Requests
- 4 Off-the-Shelf Course Library
- 3 Off-the-Shelf Course Library Discussions
- 1 Off-the-Shelf Course Library Feature Requests
- 114 CourseMill®
- 107 CourseMill Discussions
- 43 ReviewLink®
- 31 ReviewLink Discussions
- 12 ReviewLink Suggestions
- 2 The Training Arcade®
- 1 The Training Arcade Discussions
- 1 The Training Arcade Feature Requests
- 10 Additional Learning Products
- 2 Adobe®
- 4 Articulate®
- 2 Camtasia®
- Docebo®
- 1 iSpring®
- 1 Microsoft® PowerPoint®
- 910 All Things eLearning
- 5 Course Development Showcase
- 1 eLearning Brothers® Downloads
- 1 Compliance Training
- 10 eLearning Development
- eLearning Game Design
- 7 Instructional Design
- 546 Learning Management System (LMS) Integration
- 2 Mobile Learning
- 5 Visual Design
- 328 Web Accessibility
- 1.2K ♪ The Green Room
- 7 ♡ Community Feedback
- 7 Community Tips