how to send variable to email from canvas?

New Here ,
Jul 21, 2021 Jul 21, 2021

Copy link to clipboard

Copied

For ActionScript3 the code is

 

var myData:URLVariables = new URLVariables();
myData.phone = "itel A48";
var myRequest:URLRequest = new URLRequest("https://server/send.php");

myRequest.data = myData;
myRequest.method = URLRequestMethod.POST;

var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;

try
{
loader.load(myRequest);
}
catch (error:Error)
{
trace('Error: unable to load the document.');
}

 

what code should it be for Canvas?

 

TOPICS
Code , How to

Views

26

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation