Skip to main content
Participant
March 21, 2012
Question

Using LoadVars in SSAS to send data to a php file

  • March 21, 2012
  • 1 reply
  • 1127 views

I am using FMS 4.5 and have a simple application which I want to use to send two strings to a php file. But I get a compilation error whenever I try to assign any value to these objects:

Here is main.asc:

<code>

var variables = new LoadVars();

variables.username = "uname";

variables.send(http://url.abc.com/test.php,POST)

</code>

I can't compile with the second line. FMS just says: Sending error message: Compilation error

How do I send variables to a HTTP URL?

This topic has been closed for replies.

1 reply

Adobe Employee
March 22, 2012

However that should be fine..

This is sample way to send data using LoadVars

var my_lv = new LoadVars();

my_lv.name= "myname";

my_lv.send("http://server/test.php", "_blank", "POST");

Try keeping url and and POST method within "quotes". Also, method [POST/GET] is third parameter, second is target where results must be loaded (if any)..

umdraghuAuthor
Participant
April 10, 2012

Nitin,

This works with the example if I use a single variable, but not if there are multiple variables in LoadVars();