Miscellaneous

  Home arrow Miscellaneous arrow Page 12 - Creating a Mail Form with PHP and Flas...
MISCELLANEOUS

Creating a Mail Form with PHP and Flash - Part 2
By: Codewalkers
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2002-06-26

    Table of Contents:
  • Creating a Mail Form with PHP and Flash - Part 2
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Page 5
  • Page 6
  • Page 7
  • Page 8
  • Page 9
  • Page 10
  • Page 11
  • Page 12
  • The End

  •  
     

    SEARCH CODEWALKERS

    TOOLS YOU CAN USE

    advertisement

    Creating a Mail Form with PHP and Flash - Part 2 - Page 11


    (Page 12 of 14 )

    We are ready to send our form, let's have a quick look at the actions assigned to our send and clear buttons.

    on (release) {
    title = "Please select a title";
    name = "";
    subject = "";
    message = "";
    email = "";
    tellTarget ("ssl") {
    gotoAndStop (1);
    }
    tellTarget ("coffee") {
    gotoAndStop (1);
    }
    }

    I covered most of this in my previous tutorial but there are a few extra lines of code now so lets look at them.title = "Please select a title";This line sets the value in the title box back to the original message.tellTarget ("ssl") {gotoAndStop (1);}This is why it was important you had to give your movieclip an instance name, because without it this action would not be able to find it's target.This line tells flash to go to and stop on frame 1 of the movieclip ssl which is the frame without any ticks displayed and it also has the following bit of actionscript /:ssl=""; which sets the value of the variable ssl to false(nothing)tellTarget ("coffee") {gotoAndStop (1);}This is exactly the same as above only this time it targets an movieclip called coffee (my coffee question)

    The send button has the same actions as before, here is a look at the code but there is no need to go through it

    on (release) {
    if (title eq "" or name eq "" or subject eq "" or message eq "" or email eq "" or ssl eq "" or coffee eq "") {
    stop ();
    } else {
    loadVariablesNum ("form.php", 0, "POST");
    gotoAndStop (2);
    }
    }

    When the user presses the send button they are shown a Thank you message, along with this all the information they entered is also displayed. let's look at that.

    More Miscellaneous Articles
    More By Codewalkers

    blog comments powered by Disqus

    MISCELLANEOUS ARTICLES

    - Oracle Database XE: Indexes and Sequences
    - Modifying Tables in Oracle Database XE
    - Oracle Database XE: Tables and Constraints
    - More on Oracle Databases and Datatypes
    - Oracle Database XE Datatypes: Datetime and L...
    - Oracle Database XE Datatypes: Character and ...
    - From Databases to Datatypes
    - Firefox 3.6.6 Released with Improved Plug-in...
    - Attention Bloggers: WordPress 3.0 Now Releas...
    - Reflection in PHP 5
    - Inheritance and Other Advanced OOP Features
    - Advanced OOP Features
    - Linux from Scratch V.6.6 Review
    - Linux Gaining in Strength
    - Install Slackware on Your Old PC


    © 2003-2012 by Developer Shed. All rights reserved. DS Cluster 9 - Follow our Sitemap