Groups | Blog | Home
all groups > macromedia flash sitedesign > july 2007 >

macromedia flash sitedesign : flash and data base


Tilley661
7/26/2007 3:27:29 PM
hi,

im trying to create a form which is made of two input text boxes, i have made
this form and would like to be able to have the "input text" tranfered into an
access database, however i dont have a clue how to do this, i would apreciate
any help, try keep it simple im quite new to scripts and coding :) thank you
aniebel
7/27/2007 12:00:00 AM
Lookup "loadVars" in Flash Help. That will get you started. Also here are some
tutorials you might find helpful:


http://flash-creations.com/notes/servercomm_loadvars.php

http://www.kirupa.com/developer/flash/index.htm#Server_Side_&_Flash
Tilley661
7/30/2007 12:00:00 AM
ok, i tryied all them tutorials and this is what is on my flash button actions,

on (release) {
form.loadVariables("email.php","POST");
}


i then have a php page named email, and this is the code

<?php
$sendTo = "sexydan66666@hotmail.co.uk";
$subject = "My Flash site reply";
$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" .
$_POST["email"] .">\r\n";

$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-path: " . $_POST["email"];
$message = $_POST["message"];
mail($sendTo, $subject, $message, $headers);
?>

all my variables are set correct etc, but my email doesent recieve any email,
could any one explain why?
AddThis Social Bookmark Button