5 Replies Latest reply on Jul 19, 2010 9:46 AM by funkysoul

    asp code form to flash

    c. lopo Level 1

       

      Hi! it would be great if someome would help me os this one

      I have an asp form code, that i need to recriate in flash.

      knowing that the languiage has a few differences (I am unfortunatly not a coder), is there any trasnlator i can use? can enyone give me a hand trasnlating the code bellow to flash code?

       

      thanks a lot!

       

      xxx. cristina

       

       

      <%

      if Request.QueryString("isAuth") = "false" then %>

       

       

                      <p align=center style="color: #FF0000" >

                          Your account number and/or password is incorrect.

                      </p>

                      <p style="color: #FF0000">

                          If you have forgotten your details please call us on 0844 415 7808 or <a href="mailto:ccare@dooa.co.uk?subject=Trade Site Login Details" style="color: #FF0000"> Click here to Email Us </a></p>

      <% else

      end if

      %>

        • 1. Re: asp code form to flash
          funkysoul Level 4

          Hi Cristina

           

          The code you pasted doesn't contain any information about the form you wan to create..
          Here a few url's to other sites explaning how to create a flash form and connecting it to ASP or PHP.

           

          http://www.tizag.com/flashTutorial/flashforms.php
          http://www.smartwebby.com/Flash_and_ASP/Flash_sends_data.asp

          1 person found this helpful
          • 2. Re: asp code form to flash
            c. lopo Level 1

            sorry for that! here is the form, in case there's any helpfull information you can give

            cristina

             

             

            <form action="http://trade.dooa.co.uk/v1/shoplogin.asp" method="post">

            <input type="hidden" name="http://trade.dooa.co.uk/v1/default.asp" value="http://www.dooa.co.uk"/>

            <input type="hidden" name="strId" value="corpsite"/>

                                       <table cellpadding="2" cellspacing="1" border="0" width="100%">

                                             

                                              <tr>

                                                     <td class="style1">Account No: </td>

                                                     <td class="style2"><input type="text" name="strEmail"/></tr>

                                             

                                              <tr>

                                                     <td class="style1">Password</td>

                                                     <td class="style2"><input type="password" name="strPassword" /></td>

                                              </tr>

             

                                <tr>

                                                     <td class="style1"> </td>

                                                     <td class="style2"><div align="Centre"><input type="submit" value="Login" /></div></td>

                                              </tr>

             

                                     </table>

            </form>

             

            </p>

             

            <%

            if Request.QueryString("isAuth") = "false" then %>

             

             

                            <p align=center style="color: #FF0000" >

                                Your account number and/or password is incorrect.

                            </p>

                            <p style="color: #FF0000">

                                If you have forgotten your details please call us on 0844 415 7808 or <a href="mailto:ccare@dooa.co.uk?subject=Trade Site Login Details" style="color: #FF0000"> Click here to Email Us </a></p>

            <% else

            end if

            %>

            • 3. Re: asp code form to flash
              funkysoul Level 4

              yeh, have a read through those tutorials I've posted before.

              Your  ASP form has just a textfield for email, one for the password and a button so the data is sent to the .asp script.

               

              This is basically what you need:
              http://www.flashperfection.com/tutorials/Simple-login-form-with-ActionScript-3.0-19362.htm l

              • 4. Re: asp code form to flash
                c. lopo Level 1

                i am afraid the tuturial is quite basic for what i need.

                i am looking for a flash code solution to the hidden fields in htmlas well as the form response o login error as bellow.

                but thanks anyway!

                 

                obrigada

                 

                <%

                if Request.QueryString("isAuth")  = "false" then %>

                 

                 

                                 <p align=center style="color: #FF0000" >

                                     Your account number and/or password is incorrect.

                                 </p>

                                <p style="color:  #FF0000">

                                    If  you have forgotten your details please call us on 0844 415 7808 or <a href="mailto:ccare@dooa.co.uk?subject=Trade  Site Login Details" style="color: #FF0000"> Click here to Email Us </a></p>

                <% else

                end if

                %>

                • 5. Re: asp code form to flash
                  funkysoul Level 4

                  There is no need for hidden fields in AS3.

                  What you need is just a login system that checks the username & password on DB and gives the information back.

                   

                  I think the previous tutorial would do the stuff you need, if there is anything missing from that tutorial let me know and I would be more then happy to help you.