Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    I am using CS4 and trying to get a contact form to send to my e-mail from a swf. I am using Actionscript3 - the code is
    Code:
    stop();
    
    send_btn.addEventListener(MouseEvent.CLICK, submitClickHandler);
    
    function submitClickHandler(e:MouseEvent):void {
        var formVariables:URLVariables = new URLVariables();
        formVariables.userName = userName_txt.text;
        formVariables.userEmail = userEmail_txt.text;
        formVariables.userMessage = userMessage_txt.text;
        
        var variableRequest:URLRequest = new URLRequest("contactform.php");
        variableRequest.method = URLRequestMethod.POST;
        variableRequest.data = formVariables;
        
        var variableLoader:URLLoader = new URLLoader();
        variableLoader.load(variableRequest);
        
        gotoAndStop(2);
    }
    contactform.php is one I use quite a bit - it works perfectly off of regular .php and html pages.

    All the files ( including contactform.php) are in the same directory - this is not big, it's a subdirectory on my main site that I want to send a link to my friends as an invitation to a Christmas party.

    What am I doing wrong?
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  2.  

  3. #2
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    bump!

    Anyone?
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search tags for this page

sign up form in swf

,

swf contact form

,

swf contact form in html

Click on a term to search for related topics.
All times are GMT -6. The time now is 07:18 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com