LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-25-2005, 11:44 PM
yodaa yodaa is offline
Registered User
 
Join Date: Feb 2005
Location: outer space
Posts: 5
Rep Power: 0
yodaa is on a distinguished road
Question Mail with LoadVars and php, help...



Hi,

I made a form in a swf to be feed and sent by a php script by email. I used LoadVars object.

My movie has got two frame : "start" and "ok".
This is an external swf that i load into my "main" swf.

Code on frame called "start" :

Actionscript:

here is my php code :

PHP Code:

 <?php
 
 
//mailer's parameters
 
$to "someone@anydomain.com";
 
$mail_from "sender@anydomain.com";
 
$from "me";
 
$subject "this is just a test";
 
 
//picking vars sended by the swf
 
 
$nom utf8_decode($_POST["nom"]);
 
$prenom utf8_decode($_POST["prenom"]);
 
$raison_socialeutf8_decode($_POST["raison_sociale"]);
 
$mailutf8_decode($_POST["mail"]);
 
$rueutf8_decode($_POST["rue"]);
 
$code_postalutf8_decode($_POST["code_postal"]);
 
$villeutf8_decode($_POST["ville"]);
 
$tel_fixe utf8_decode($_POST["tel_fixe"]);
 
$portable utf8_decode($_POST["portable"]);
 
$fax utf8_decode($_POST["fax"]);
 
$demande utf8_decode($_POST["demande"]);
 
 
$message 
 
"Nom :".$nom."\n"."\n".
 
"Prénom :".$prenom."\n"."\n".
 
"Raison sociale :".$raison_sociale."\n"."\n".
 
"E-mail :".$mail."\n"."\n"."Rue :".$rue."\n"."\n".
 
"Code postal :".$code_postal."\n"."\n".
 
"Ville :".$ville."\n"."\n".
 
"Tél fixe :".$tel_fixe."\n"."\n".
 
"Tél portable".$portable."\n"."\n".
 
"Fax :".$fax."\n"."\n".
 
"Demande :".$demande;
 
 
//mail formating
 
$headers "MIME-Version: 1.0\r\n"//version MIME
 
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n"
 
$headers .= "From: $mail_from <$from>\r\nReply-to : $mail_from  <$from>\nX-Mailer:PHP"
 
 
//sending Email 
 
mail($to$subject$message$headers);
 
?>
I don't know what's gone wrong... I appreciate any help.

Thanx,
---------
Yodaa
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
loadVars send with PHP HOW DO YOU DO IT?! jpwrunyan Client Side 6 03-11-2011 09:22 AM
Loadvars with PHP pcdf Actionscript 2.0 0 05-08-2008 06:23 PM
Flash LoadVars PHP - Flash Version? GobLox Flash 8 0 06-05-2007 06:54 PM
LoadVars or XML with PHP on DIFFERENT servers doesn't work. sckz Server Side 4 02-11-2004 04:30 PM
Using LoadVars to load a PHP file... Macette Flash MX 1 04-02-2003 11:15 AM




All times are GMT. The time now is 12:49 PM.