The ability to set and send form parameters with the same name is available with URLVariables though it's not quite documented very well (at all?).
Below are 4 examples of setting 2 values with same parameter name. The first example results in 1 parameter. The rest result in 2 parameters as expected.
// results in 1 parameter var urlVarsA:URLVariables = new URLVariables(); urlVarsA["foo"] = "Hello"; urlVarsA["foo"] = "World!"; // this overwrites the previous trace(urlVarsA); // foo=World%21 // results in 2 parameters as expected var urlVarsB:URLVariables = new URLVariables(); urlVarsB.decode("foo=Hello"); urlVarsB.decode("foo=World!"); // decode() has logic to detect existing params trace(urlVarsB); // foo=Hello&foo=World%21 // results in 2 parameters as expected var urlVarsC:URLVariables = new URLVariables("foo=Hello&foo=World!"); trace(urlVarsC); // foo=Hello&foo=World%21 // results in 2 parameters as expected var urlVarsD:URLVariables = new URLVariables(); urlVarsD["foo"] = ["Hello", "World!"]; // Arrays are special to URLVariables trace(urlVarsD); // foo=Hello&foo=World%21
i cant understand the indetaile about this can u explain also for send variables as u mention receive variables in a much better style…….
thanks in advance,