2 Replies Latest reply on Jul 26, 2006 11:44 PM by henk_jan

    Problem with posting large amounts of text to asp/php

    henk_jan Level 1
      I trying to bild a cms and i'm using the rich text editor to enter or edit content. When I try to send the html text to my asp file I get an error when the text is more then a couple of words. I know that to send larger amounts of text to a asp of php file you have to use the post method in stead of the get method, so I did. But still I get an error.

      Can anybody help me?

      Here's my code (fragments of it):
      For actually sending the data I use this code:

      var sUrl:String = this.getFilename(nType);
      var sParams:String = "query=" + nQueryId;

      //voorbeeld voor oParam: {par1: "1ste", par2: "2de", par3: "3de"}
      for(var sKey:String in oParam) {
      sParams += "&" + sKey + "=" + oParam[sKey];
      var variables:URLVariables = new URLVariables(sParams);
      var request:URLRequest = new URLRequest(sUrl);
      request.method = URLRequestMethod.POST;
      request.data = variables;
      var loader:URLLoader = new URLLoader();
      loader.addEventListener(Event.COMPLETE, processXMLFile);
      try {
      } catch (error:Error) {
      trace("Kan url: " + sUrl + " niet laden.");