Jump to content


Creating a Form in Flash


  • You cannot reply to this topic
2 replies to this topic

#1 South

    Young Padawan

  • Members
  • Pip
  • 1 posts

Posted 26 February 2008 - 08:57 PM

Hey whats goin guys,

ok i am having trouble understanding how to make a simple,

Name: |TEXT BOX|
Email: |TEXT BOX|
Comments:
|comment box|

|submit|

The submit button will send the information to me.

Thats basically the layout i want i have a bg image i design in ps. i just need to no how to make this work. If anyone wants to see it i can upload the flash file.

Any help is greatly appreciated, if you help and you have a website ill gladly advertise on my site for you. www.southnock.com

Thanks!

South

#2 flamereaper

    Young Padawan

  • Members
  • Pip
  • 65 posts
  • Gender:Male
  • Location:UK

Posted 27 February 2008 - 04:15 AM

Ok well in order to make a form in flash you need to have a PHP file, flash itself cant send any data to you withouth the help of a PHP script.


As for the flash stuff, well thats easy. make sure to give all of those input text fields an instance name that you will remember then use this code.


<?php
$sendTo = "yourEmail@address.com";
$subject = "Flash email form stuff";
    $name = $_POST["name"];
$email = $_POST["email"];
    $comment = $_POST["comment"];

$headers = "From: " . $name;
$headers .= "<" . $email . ">\r\n";
$headers .= "Reply-To: " . $email . "\r\n";
$headers .= "Return-Path: " . $email;

mail($sendTo, $subject, $comment , $headers);
?>

[/color][/size][/size]Hope that helps


#3 rynomania

    Young Padawan

  • Members
  • Pip
  • 1 posts

Posted 16 April 2008 - 05:17 PM

Say that I add more text input fields in Flash, such as "Phone Number", and "Event Date", how do I go about adjusting the php file to include these additional fields in the email I get?
-Thanks,
Ryno





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users