7 Replies Latest reply on Apr 12, 2008 8:37 AM by AwesomeDigital2

    Posting To A URL

    AwesomeDigital3 Level 1
      I am trying to post to a URL which works fine.

      var url:String = " http://www.URLHere.org/"
      var variables:URLVariables = new URLVariables();

      variables.fname="Bill";
      variables.lname="Jones";
      variables.checkB="value1"
      variables.CheckB="value2"


      The problem I am running into is that the page I am tring to post to has multiple check boxes with the same name.
      So if I use the method above, that variable only shows once when the full URL is built.

      http://www.URLHere.org/?fname=Bill;lname=Jones;checkB=value2


      If I build the URL by hand like this, it checks the correct boxes based upon the value
      http://www.URLHere.org/?fname=Bill;lname=Jones;checkB=value1;checkB=value2


      Is there any way that I can add same name variables on the fly?


      Thanks
      Mathias