Welcome, Guest
Username: Password:
  • Page:
  • 1
  • 2

TOPIC: Sending JSON when insert query !

get Json or CSV when submit Survey 4 years 3 months ago #73787

  • rodeo_fly
  • rodeo_fly's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
Well I am not even near to it
And this is not very conforting :

all rite it's not that funny but it means that this is wanted for years !
Serioulsly where is the guy who wrote this huge exportsresult.php ?
Don't you think it would take so many time for this guru to provide a simple script to get csv ?

Let's be constructive maybe some others will have the will and with the will we can everythings...yes we can !

foreach($_POST as $key=>$value)
echo $key."=".$value."&";
gives us

so wee need all those parameters to get our csv but we can't run the script from outside the admin.php or else we get a warning on csrf token violation

If I just take the script outside and comment the line...ahem ^_^

When I look again to that function my arms are falling down on the floor...How come this two csv lines are so complex to produce ???
Last Edit: 4 years 3 months ago by rodeo_fly.
The administrator has disabled public write access.

get Json or CSV when submit Survey 4 years 3 months ago #73810

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5965
  • Thank you received: 364
  • Karma: 259
For Limesurvey 2.0 we are porting all code to the MVC framework "Yii". I'm not sure if thise file was already properly restructured but you can check out the "limesurvey_yii" branch to have a look and test.
For the upcoming Google Summer of Code (if we will be accepted again by Google this year), there might be a task to create an API for such cases, see docs.limesurvey.org/Project+Ideas+for+GSoC+2012

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.195 seconds