E
E
esy2015-02-17 19:29:22
Programming
esy, 2015-02-17 19:29:22

How to get data from a form and submit it via a link?

Friends, help advice!
There is a banner: https://www.fl.ru/users/esy/viewproj.php?prjid=5074085
I need to make sure that when we click on the green button, we send a person to this link:
url.ru?phone={ }&postal={}&business={}
Question. How to get the data from these forms and send them via links along with the data?
How can I do that? Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Pukhov, 2015-02-18
@Neuroware

C ActionScript didn't work in practice, but a quick google says that there are no problems with this:

import flash.net.URLVariables;
import flash.net.URLRequest;
import flash.net.URLRequestMethod;
 
var variables:URLVariables = new URLVariables(); 
variables.decode("http://www.xx......x.com/w.php?xt=66&zt=99");
var request:URLRequest = new URLRequest(); 
request.url = "http://www.xx......x.com/w.php"; 
request.method = URLRequestMethod.POST; 
request.data = variables; 
var loader:URLLoader = new URLLoader(); 
loader.dataFormat = URLLoaderDataFormat.VARIABLES; 
loader.addEventListener(Event.COMPLETE, completeHandler); 
try 
{ 
    loader.load(request); 
} 
catch (error:Error) 
{ 
    trace("Unable to load URL"); 
} 
 
function completeHandler(event:Event):void 
{ 
    trace(event.target.data.welcomeMessage); 
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question