468,761 Members | 1,799 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,761 developers. It's quick & easy.

send data from flash form to html page?

Hello,
Please i wanna know how to send data of a form made by flash
to html page inorder to handel the values sent by the that form
and so how to send these data to a mail?

Thanks in advance..
Oct 3 '06 #1
3 9840
kestrel
1,071 Expert 1GB
do you have a php "action" page yet?
Oct 4 '06 #2
YES I HAVE

I USED THAT IN FLASH
Expand|Select|Wrap|Line Numbers
  1. on (release) {
  2.     url="http://site.com/sent.php?u_name="+t1+"&email="+t2;
  3.     getURL(url,"_self","POST");
  4.  
  5. }
AND THE RESULTED URL

Expand|Select|Wrap|Line Numbers
  1. http://site.com/sent.php?u_name=goldeneagle&email=geagle@mine.com?t1=goldeneagle&t2=geagle%40mine%2Ecom&url=http%3A%2F%2Falbatly%2Ecom%2Fsent%2Ephp%3Fu%5Fname%3Dgoldeneagle%26email%3Dgeagle%40mine%2Ecom
and i used
[PHP]
<?php
echo $_GET['u_name']."<BR>";
echo $_GET['email']."<BR>";
?>
[/PHP]

the result
[HTML]goldeneagle
geagle@mine.com?t1=goldeneagle[/HTML]

how to control that results??
and how to use mailto function correctly??

thanx in advance
Oct 4 '06 #3
Hi,

well, in Flash you may use the LoadVars Class to handle, send and receive variables...in PHP, let's say that you are using the "POST" method:

<?php
$mail = "youremail@mail.com";
$subject = "Flash Form";

$message = "This is your message:\n";
$message .= "And here goes the variable for the name:".$_POST['variableNameFromFlash'];

mail($mail,$subject,$message);

?>

This is the most basic PHP processment...from here you can go to include HTML, Uploading Files, everything you do on a email application really.

Let me hear from you about this stuff....

Cheers
Oct 5 '06 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by Mirco | last post: by
9 posts views Thread by eswanson | last post: by
3 posts views Thread by Jeff | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.