# PHP Flash Form-Mail Tutorial

**URL:** <https://forum.kirupa.com/t/php-flash-form-mail-tutorial/15694>\
**Category:** flash\
**Created:** [March 17, 2003, 6:38am UTC](https://forum.kirupa.com/t/php-flash-form-mail-tutorial/15694 "2003-03-17T06:38:38Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 19, 2003, 6:56pm UTC](https://forum.kirupa.com/t/php-flash-form-mail-tutorial/15694/41 "2003-03-19T18:56:00Z")

</div>

yeah, he has it set up like that. Everything should work, but I can’t get his movie to send the variables. I have tried loadVariablesNum on different levels, I even tried getURL with a POST command I couldn’t get it. I think it has something to do with how your file is set up… I can’t figure out how to fix it…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 19, 2003, 7:00pm UTC](https://forum.kirupa.com/t/php-flash-form-mail-tutorial/15694/42 "2003-03-19T19:00:29Z")

</div>

that sucks

_sniffle_ i want it to work

lostinbeta  
ilyalmasse  
sbeener  
dan4885  
senocular

someone!!!?

maybe i should repost this question in a new thread … most people don’t want to read through 30 posts to see my question here at the end =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 19, 2003, 7:08pm UTC](https://forum.kirupa.com/t/php-flash-form-mail-tutorial/15694/43 "2003-03-19T19:08:58Z")

</div>

Well the methods I used should have worked. You may have to change around the way your file is set up. It was kind of confusing…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 19, 2003, 8:08pm UTC](https://forum.kirupa.com/t/php-flash-form-mail-tutorial/15694/44 "2003-03-19T20:08:43Z")

</div>

post up the fla i’ll try a dabble @ it!  
jayemsee!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 19, 2003, 8:30pm UTC](https://forum.kirupa.com/t/php-flash-form-mail-tutorial/15694/45 "2003-03-19T20:30:47Z")

</div>

you can find the fla on my site

[http://www.aaronsleeper.com/site.fla](http://www.aaronsleeper.com/site.fla)

jubba: how would you suggest i reorganize the file. this is the first time i’ve tried to make an entire site in flash. so i’m learning and organizing as i go. hence the jumbled disorganized appearance of the fla file =)

thanks for all your help guys

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 19, 2003, 8:33pm UTC](https://forum.kirupa.com/t/php-flash-form-mail-tutorial/15694/46 "2003-03-19T20:33:42Z")

</div>

Well, I try to make every section a separate movie and then load everything in. I try to use AS instead of tweens as much as possible. Its basically hit and miss/ trial and error to get a system that works for you. When I opened your file I almost had a seizure. Its not what I’m used to 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 19, 2003, 8:41pm UTC](https://forum.kirupa.com/t/php-flash-form-mail-tutorial/15694/47 "2003-03-19T20:41:07Z")

</div>

lol

sorry for the health complications due to my unorganized file. i really don’t want to start over but maybe i should. _sigh_:sure:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 19, 2003, 9:35pm UTC](https://forum.kirupa.com/t/php-flash-form-mail-tutorial/15694/48 "2003-03-19T21:35:42Z")

</div>

we were so concerned w/ why the php wasnt working you overlooked one important factor?!

just below and to the right of where you put the variable name  
there is a box labeled MAXIMUM CHARACTERS put like 100 for all of them except the message and in message put in like 500, see if that works…  
jayemsee

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 19, 2003, 9:52pm UTC](https://forum.kirupa.com/t/php-flash-form-mail-tutorial/15694/49 "2003-03-19T21:52:55Z")

</div>

_sigh_ i was hopeful

i didn’t think that was the problem but i tried it anyway. the character limit is a limiter that will stop the user from entering characters, not just keep them from being sent as variables and when the value is set to 0 then it is unlimited =) nice try though

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 19, 2003, 10:33pm UTC](https://forum.kirupa.com/t/php-flash-form-mail-tutorial/15694/50 "2003-03-19T22:33:42Z")

</div>

my bad shuga, i dunno, the only other thing i can think of, is to load the contact page as a seperate swf, so once the user presses the contact button the bottom would slide to the left as usual, than have (loadMovie, 1)so it would load that movie as a seperate swf , with out all the \_root. actions??

could work because that way you’ll only have 2 frames in the new swf?

jayemsee

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 20, 2003, 4:20am UTC](https://forum.kirupa.com/t/php-flash-form-mail-tutorial/15694/51 "2003-03-20T04:20:48Z")

</div>

for teh clear button, cant you just make it go ot the first keyframe, so it automatically clears everthing? 😕

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 20, 2003, 4:44am UTC](https://forum.kirupa.com/t/php-flash-form-mail-tutorial/15694/52 "2003-03-20T04:44:19Z")

</div>

because the 1st keyframe is the same keyframe  
that the dynamic text is on, so youd hafta to have  
somothin like

on(rollOver) {  
if name = “”;  
message = “name = blank”  
}

on (rollOut) {  
name = “”

etc. so thay all go back to being blank

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 20, 2003, 5:52am UTC](https://forum.kirupa.com/t/php-flash-form-mail-tutorial/15694/53 "2003-03-20T05:52:26Z")

</div>

OK the email sends to me, but i see nothing for the subject coudl somone please copy the code i have 3 variables, “name”, “email”, and “comments” can somone help me please i copied this code

PHP:--------------------------------------------------------------------------------

\<?  
$to = “PUT Your E-mail Address Here”;  
$name = $\_POST[‘name’];  
$email = $\_POST[‘email’];  
$company = $\_POST[‘company’];  
$question = $\_POST[‘question’];  
$subject = “Question Form”;

$message = "$question  
";  
$message .= "From $name \<$email\>  
";  
$message .= "Company: $company  
";

$header = “From: $name \<$email\>”;

mail($to, $subject, $message, $header);  
?\>

* * *

can somone tchange it to what i need to type thanks!!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 20, 2003, 5:58am UTC](https://forum.kirupa.com/t/php-flash-form-mail-tutorial/15694/54 "2003-03-20T05:58:21Z")

</div>

this is what i get inside my email

\>From \<\>  
Company:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 20, 2003, 10:19am UTC](https://forum.kirupa.com/t/php-flash-form-mail-tutorial/15694/55 "2003-03-20T10:19:26Z")

</div>

theres a php form mailer tutorial on [actionscript.org](http://actionscript.org) its pretty good and alot easier that all that larkum u guys are doing

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 20, 2003, 3:08pm UTC](https://forum.kirupa.com/t/php-flash-form-mail-tutorial/15694/56 "2003-03-20T15:08:09Z")

</div>

if you only have 3 variables  
“name”, “email”, and “comments”

than company wont show up, because you dont have a company variable.

```php

<?
$to = "cheez0@cheez00.com";
$name = $_POST['name'];
$email = $_POST['email'];
$company = $_POST['company'];
$question = $_POST['comments'];
$subject = "cheez00 phph mailer";

$message .= "name: $name - email: $email \r";
$message .= "($comments) 
";
$message .= "$question 
";

$header = "from: $name ($email)";

mail($to, $subject, $message, $header);
?>

```

and save it as .php, find out if your server needs you to put your php file in a certain folder or modify the CHMOD settings.  
jayemsee

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 20, 2003, 9:52pm UTC](https://forum.kirupa.com/t/php-flash-form-mail-tutorial/15694/57 "2003-03-20T21:52:45Z")

</div>

Ok for subject it says cheez00 php mailer, bu tthis is what i get for the msg

name: - email: ()

please help i reallly want this to work

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 20, 2003, 10:37pm UTC](https://forum.kirupa.com/t/php-flash-form-mail-tutorial/15694/58 "2003-03-20T22:37:50Z")

</div>

haah im an idiot… thanks to suga who helped me on aim… i was putting the variables inside the instance name and not variable… but i got it thanks guys!~

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 7, 2003, 1:09am UTC](https://forum.kirupa.com/t/php-flash-form-mail-tutorial/15694/59 "2003-05-07T01:09:44Z")

</div>

Hey guys, I was having a lot of trouble with my mailer until i added the words “php” in the beginning of the php code…

So let’s say the php code starts like:

```php

<?
$to = "cheez0@cheez00.com";
$name = $_POST['name'];
$email = $_POST['email']; (and so on)....

```

change it to:

```php

<?php
$to = "cheez0@cheez00.com";
$name = $_POST['name'];
$email = $_POST['email']; (and so on...)

```

And BAM it works 🙂

So give that a try if you’re still stuck.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 7, 2003, 1:20am UTC](https://forum.kirupa.com/t/php-flash-form-mail-tutorial/15694/60 "2003-05-07T01:20:34Z")

</div>

hmmm… that really should have no effect on it… may have something to do with your host and how its server recognizes the files…

[Previous page](https://forum.kirupa.com/t/php-flash-form-mail-tutorial/15694.md?page=2)

[Next page](https://forum.kirupa.com/t/php-flash-form-mail-tutorial/15694.md?page=4)
