HomeAfter Sale Support Working with Flash Advanced How to make a contact form work

How to make a contact form work

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

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


    $your_company = $_GET['company'];
    $your_name = $_GET['your_name'];
    $your_phone = $_GET['phone'];
    $your_email = $_GET['email'];
    $your_message = $_GET['message'];
    $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></html>";

    <body bgcolor="#282E2C">
        <div align="center" style="margin-top:60px;color:#FFFFFF;font-size:14px;font-family:Tahoma;font-weight:bold">
            Your message was sent. Thank you.
<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 it!