1 Reply Latest reply on Nov 19, 2008 7:49 PM by Mitek17

    problem sending post request

    phil1943 Level 1
      I cannot seem to send a posted request variable.
      The PHP script I am posting to, does not recognize any POST values coming in from the Flex HTTPService RPC.
      Does anyone have any ideas ?

      <mx:HTTPService id="submitService" contentType="application/xml" url="submit.php"
      useProxy="false" method="POST" result="resultHandler(event)">
      <mx:request xmlns="">
      <postedVariable>{myTextInput.text}</postedVariable>
      </mx:request>
      </mx:HTTPService>

      PHP

      <?php
      if ($_POST['postedVariable']) {
      echo "success";
      }

      ?>