7 Replies Latest reply on Apr 26, 2006 5:36 AM by PayBas

    HTML Form converted to Actionscript problem.

      This is my HTML form that I have been trying to reconstruct in Flash 8 Pro.

      <form method="POST" action=" http://nonsense.html">
      <input type="hidden" name="action" value="create">

      <input type="text" name="user">
      <input type="password" name="pass">
      <input type="text" name="email">

      <input name="register_button" class="button" value="create">


      I have made it a little more complex because I don't want my users to be able to enter anything they like... so this is the interface.

      TextInput box for Name with instance name input_account_name
      TextInput box for Password with instance name input_account_pass1
      TextInput box for Password again with instance name input_account_pass2
      TextInput box for E-mail with instance name input_account_email
      Textbox to display errors with instance name account_errors
      Button to submit the entries with instance name button_account_submit


      This is the actionscript on the timeline.


      button_account_submit.onRelease = function() {
      if (input_account_name.length < 6) {
      account_errors.text = "Error: name must be at least 6 chars!"; }
      else if (input_account_pass1.text !== input_account_pass2.text) {
      account_errors.text = "Error: passwords are not the same!";
      } else {
      account_errors.text = "Entry accepted... processing...";
      getURL (" http://nonsense.html/", "_blank", "POST");

      Then I added these lines on the same timeframe, they should be loaded as variables into the URL by the "POST" method.

      action = "create";
      var user:String = this.input_account_name.text;
      var pass:String = this.input_account_pass1.text;
      var email:String = this.input_account_email.text;

      But they are not loaded correctly... by changing the "POST" method to "GET" I could see that they are not loaded correctly. It is displayed as

      I have tried writing it all in various different ways... but after a few hours of trying I cannot get it to work. I think I'm missing something here. If anyone can help me that would be nice.

      Thx in advance.