Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

how to send variable to email from canvas?

New Here ,
Jul 21, 2021 Jul 21, 2021
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
89
Translate
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