Posts tagged as:

php

How to make a Flash Contact form Work

by Collado on March 13, 2007

foamers.net will install this script for you for as little as $80 a pop. Should you wish to employ our design team to make your Flash contact form work hop on over to the contact page and talk to us..

If you have been searching around trying to figure out what is the easiest way to make a Flash contact form work, then this is it. In this tutorial you will learn how to create a Flash contact form. PHP is provided. Very simple..

First of all, please see How to make a contact form work demo movie.

Then you should DOWNLOAD the following php script, save it as contact.php:

<?php

    $your_company = $_GET[‘company’];
    $your_name = $_GET[‘your_name’];
    $your_phone = $_GET[‘phone’];
    $your_email = $_GET[‘email’];
    $your_message = $_GET[‘message’];
   
     // change this to whatever you needed to be.
    $recipient = ‘you@yourdomain.com’;

    //you can make it say anything you want
    $subject = ‘Someone has submited your form’;

     // Do not edit anything else beyond this point
    $headers .= ‘Content-type: text/html; charset=iso-8859-1′;

    $content = "<html><head><title>Contact letter</title></head><body><br />";
    $content .= "Company: <b>" . $your_company . "</b><br />";
    $content .= "Name: <b>" . $your_name . "</b><br />";
    $content .= "Phone: <b>" . $your_phone . "</b><br />";
    $content .= "E-mail: <b>" . $your_email . "</b><br /><hr /><br />";
    $content .= $your_message;
    $content .= "<br /></body>";
   

    // The mail() function allows you to send mail.
    mail($recipient,$subject,$content,$headers);
?>
<html>
    <body bgcolor="#282E2C">
        <div align="center" style="margin-top:60px;color:#FFFFFF;font-size:11px;
font-family:Tahoma;font-weight:bold"
>
            Your message was sent. Thank you.
        </div>
    </body>
</html>
<script>resizeTo(300, 300)</script>

Put your e-mail address as shown in a video tutorial and then save this file. Place this contact.php file in the same folder where you have your SWF movie. That’s all!

{ 76 comments }