Miscellaneous

  Home arrow Miscellaneous arrow Page 6 - 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 - On to the PHP Code


    (Page 6 of 7 )

    Next we will turn our attention to our PHP file. Open up your favourite text editor or WYSIWYG program and copy this code

    <?php
    $to 
    "you@yourdomain.com";
    $msg "$name\n\n";
    $msg .= "$message\n\n"
    mail($to$subject$msg"From: My web site\nReply-To: $email\n");
    ?>

    Again let's break down this code line by line.$to = "you@yourdomain.com";Here we are setting a variable with your e-mail address as it's value.$msg = "$name\n\n";$msg .= "$message\n\n";This is what will be displayed in the body of our e-mail.The variable name and message are defined in the flash filemail($to, $subject, $msg, "From: My web site\nReply-To: $email\n");mail() is a great function in PHP . It's syntax ismail("recipient", "subject" , "message", "mailheaders")The variable $subject and $email are also defined in the flash file Save your file as form.php

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