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 3 of 3

Thread: Forms in Flash

  1. #1
    Join Date
    Jan 2004
    Member #
    i wish to create a form in flash where the user enters their postal adress, and then an email is sent to my company with their address as the message body.

    I have written this actioncript code, but dont know if you can use variables in the getURL("mailto: command?

    could someone shed some light on how to do it? i have put the variable 'address_field' in the string, but am not convinced that this is the solution.
    Thanks Guys

    heres the code:
    submit_btn.onRelease = function(){
    getURL(" REQUEST&body=address_field");


  3. #2
    Senior Member Bazrazmataz's Avatar
    Join Date
    Jan 2004
    Newcastle England
    Member #
    id create a movie clip in the libary. create a input text box named mail and a button named sendmail.

    Also i created an extra dynamic text box with var emailStatus so that incorrect email addresses are not posted and a user is informed of a mistake.

    Attact this code to the send button

    on (release) {
    if (!Email.length || Email.indexOf("@") == -1 || Email.indexOf(".") == -1) {
    EmailStatus = "Please enter a valid E-mail address";
    else {
    loadVariablesNum ("snowMailPHP.php", "0", "Post");
    EmailStatus = "You Message Is Now Being Sent and A Reply Will Be Made As Soon As Possible";

    Then i send the details to a php script here a really simple script

    $ToEmail = "";

    $Message = $Email;


    Print "_root.Mail.EmailStatus=Complete - Your mail has been sent";


    This could need a bit of jiggling as i cut out all the extra text fields i have in my form and im not a good php coder but i hope i pointed u in right direction. If i can find the address of the original tutorial i followed ill put link up it was really good.
    Whats the matter the CIA got u pushing too many pencils ???

  4. #3
    Join Date
    Jan 2004
    Member #
    thanks for that!
    unfortunatly, i have discoverd my host odesnt support php, as im on shared web space.
    So i only get asp.....?
    but if i pay 1500 (as opposed to the 200 im currently paying) then i get my own server, and thus php functionality.


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
All times are GMT -6. The time now is 09:02 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: