Searching didn't help

I KNOW I KNOW…there’s tons of posts around here about php mailto forms…but I couldn’t find even one that actually gave the code to put in the flash file! If someone could just tell me what code to add to my completed form that would be GREAT! Thanks.

:love:

you would use loadVariables. I’m not really sure how your file is set up, but say you had two input fields (name & date)

flash script on a button…


on(press){
     loadVariables("phppage.php", "POST");
}

then the php page would look something like


$name = $_POST['name'];
$date = $_POST['date'];

//then do whatever here

excuse my stubborness but I’ve never used php before so…

i understand that the first code goes on my ‘submit’ button and i’ll have a separate page (the php page) but where do i put my email address? Or what information should I give you so you can tell me this?

:love:

well you asked for the Flash code, for the PHP code take a look at this thread:

http://www.kirupaforum.com/forums/showthread.php?s=&threadid=12746&highlight=php+mail+form

the link’s bad

replace www.kirupaforum.com with the ip
http://64.207.155.38/forums/showthread.php?s=&threadid=12746&highlight=php+mail+form

sorry. forgot the dns hasn’t changed for everyone…

try this:

http://64.207.155.38/forums/showthread.php?s=&threadid=12746&highlight=php+mail+form

i’ve put all my own variables in the code and put it online and it still doesn’t go to my email.


$ToEmail = "webmaster@cyberwebs.org";

$ToSubject = "Enquiry";

$BrowserType = $HTTP_USER_AGENT;

$MediaTypes = $HTTP_ACCEPT;

$ServerName= $REMOTE_ADDR;

$EmailBody = "$textd 
 $textp 
 $textm";

mail($ToName." <".$ToEmail.">",$ToSubject, $EmailBody, "From: ".$FirstName." <".$Email.">");
?>

You have to initiate the post array to collect the variables from the flash page:

this goes on top of PHP page…


$name = $_POST['name'];

do that for each variable that you send from your flash movie…

_huh?  <   you +guys _are **smart ==   >

also check out this page for more about mail, i have never used it, but I think you are putting the wrong variable in…

http://www.php.net/manual/en/function.mail.php

I don’t think you put the name in, just the email address as the “string to”

yeah change it to:


mail($ToEmail, $ToSubject, $EmailBody, "From: ".$FirstName." <".$Email.">");

that worked…

my EXACT php


$name = $_POST['name'];
$phone = $_POST['phone'];
$email = $_POST['email'];


mail($ToEmail, $ToSubject, $EmailBody, "From: ".$FirstName." <".$Email.">");

Those top 3 items will be collected and I added that last line like you indicated…now I suppose I fill in the $ToEmail with my email but I’ve tried and it STILL doesn’t work. i took a look at the php.com site but it’s like looking at a foreign language (actually it couldn’t BE more foreign…lol) and so I can’t even use it to search out what’s wrong. Sorry but once I’ve got this working I’m sure I can get a grasp on php. Thanks for the patience and help you’ve given. :love: