Converting a HTML Form to Flash

I’ve searched the forums for about 7-10 pages but nothing turned up, so here’s my problem.

I’m not sure if this is the right forum for this, it could also be placed in server side, but i’m not sure. OK, here it goes.

I have to make a brand new site for some people. Their old site was in regular HTML and the new site has to be in Flash. On the old site they had a mailform and they want to use the same one with the new site. I just can’t get it to work. Here’s what I did so far.

The old HTML code:


<form METHOD="POST" ACTION="/asp/FormMail/FormMail.asp">
      <input type="hidden" name="to" value="info@mailaddress.com"><input type="hidden"
      name="template" value="/email.txt"><input type="hidden" name="redirect"
      value="/thanks.htm"><input type="hidden" name="redirectistemplate" value="ON">
<table>
        <tr>
          <td>Bedrijfsnaam: </td>
          <td><input type="text" name="companyname_required" size="36"> *</td>
        </tr>
        <tr>
          <td>For: (name)</td>
          <td><input type="text" name="name_required" size="36"> *</td>
        </tr>
        <tr>
          <td>Afdeling:</td>
          <td><input type="text" name="department" size="36"></td>
        </tr>
        <tr>
          <td>Address:</td>
          <td><input type="text" name="address_required" size="36"> *</td>
        </tr>
        <tr>
          <td>Zipcode:</td>
          <td><input type="text" name="zip1_numeric_required" size="4">
          <input type="text" name="zip2_required" size="2"> *</td>
        </tr>
        <tr>
          <td>City:</td>
          <td><input type="text" name="city_required" size="36"> *</td>
        </tr>
        <tr>
          <td>Telephone:</td>
          <td><input type="text" name="telephone_required" size="36"> *</td>
        </tr>
        <tr>
          <td>E-mail:</td>
          <td><input type="text" name="email" size="36"></td>
        </tr>
        <tr>
          <td>Question:</td>
          <td><textarea name="question" rows="4" cols="30"></textarea></td>
        </tr>
        <tr>
<td><input type="reset" value="erase all">
        <input type="submit" value="send">
</td>
        </tr>
      </table>
    </form>

This code works. The ASP file it points to is somewhere on the server. This mail form is provided by their provider.

In Flash I made the same textfields and gave them variable names exactly like the HTML ones. I also placed a button and gave it the AS code:
[AS]
on(press){
loadVariablesNum(“asp/FormMail/FormMail.asp”,0,“post”);
}
[/AS]

But al of this doesn’t seem to work. Can anybody help me out here? I’m really kind of desperate. I’ve even tried PHP but I don’t think their provider supports PHP.

Thnx in advance

Yeah, what does he mean? It works like a charm!!! Only thing I did was change the names so they would make more sense to me, and that was it. Works just fine.

Thnx for all the help…