Miscellaneous

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

Creating a Mail Form with PHP and Flash
By: Codewalkers
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 43
    2002-05-25

    Table of Contents:
  • Creating a Mail Form with PHP and Flash
  • The Form
  • Text Fields
  • Buttons
  • More Buttons
  • On to the PHP Code
  • Finishing it off

  •  
     

    SEARCH CODEWALKERS

    TOOLS YOU CAN USE

    advertisement

    Creating a Mail Form with PHP and Flash - More Buttons


    (Page 5 of 7 )

    Next the send button

    Again I have just created a simple button and assigned it the following actions

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

    Let's go through the code Line by Line on (release)Perform these actions when this button is clicked then releasedif (name eq "" or subject eq "" or message eq "" or email eq ""){Check to see if the fields don't have a value.stop()if one of the fields doesn't have a value then stop.} else { if all the fields have a value(filled in) then carry on.loadVariablesNum ("form.php", 0, "POST");Send variables, using the POST method, to our PHP script which will send the e-mail gotoAndStop (2);Go to the thank you message and stop once the e-mail has been sent. So we have our text fields and we have our buttons with the necessary actions.Now we need to write the script to send it with.

    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 7 - Follow our Sitemap