PDA

View Full Version : Flash email form w/ PHP


paulv7
12-14-03, 09:16 PM
I am trying to make an email form and am stuck. I think either my PHP file isn't working or the flash file isn't sending the info to the php file.

Here is the swf I have so far

swf (http://www.vance3d.com/flash/email.swf)

It will run all the way through but I won't recieve an email.


Here is the PHP file I am using to test.

==============
<?php

$to = "xxxxxxx@vance3d.com"; (x's are address I took out out)
mail($to, $Subject, $Email, $message);

?>
================================

Here is the fla (flash work file) file if you wouldn't mind looking to see if I have somethig wrong in sending the info to the PHP

fla (http://www.vance3d.com/flash/email.fla)


Right now both of these files sit on the server in www.vance3d.com/flash. This is just a place so I can test them.

I am just learning Flash and don't know much about PHP so any help would be great.

Thank You
Paul

__________________

YvetteKuhns
12-14-03, 09:30 PM
<?php

$to = "xxxxxxx@vance3d.com"; (x's are address I took out out)
mail($to, $Subject, $Email, $message);

?>


That is it? No print line or sendmail? Gee, that could be the problem! :p

You can use formmail.pl in your cgi-bin. Change your action scripting in your flash file to go to http://www.vance3d.com/cgi-bin/formmail.pl after installing formmail.pl there. If you need it, email me. If you use powweb's version, it only works for powweb email! But at least you can test it. ;)

By the way, not making fun, just a little surprised. I tested the form, thinking it was a different problem.

paulv7
12-14-03, 09:33 PM
hehe....

Like I said I'm new to this whole PHP & Flash thing. They last week I've been doing so many tutorials and trying to find out how to do so much.

I haven't found any good thing on how to setup a PHP email send file so I gave it a shot. This is the first time i have ever tried to use PHP


I thought that the mail (.....) line would sen it. I don't have a very good grasp on all the differnt php files from tutorials I have been staring at.

Thanks

tbonekkt
12-14-03, 09:35 PM
Originally posted by YvetteKuhns
<?php

$to = "xxxxxxx@vance3d.com"; (x's are address I took out out)
mail($to, $Subject, $Email, $message);

?>


That is it? No print line or sendmail? Gee, that could be the problem! :p The mail() line is the command to use sendmail with php. :)

EDIT: Also, what is the difference between the $to and the $Email variables? The order should be:

recipient, subject, message, headers

paulv7
12-14-03, 09:50 PM
do I need formmail saved some where on my site? I thought since it was on the server the "mail" command would work. Is that correct?

tbonekkt
12-14-03, 09:51 PM
you are correct - no need to install formmail.

YvetteKuhns
12-15-03, 09:56 AM
Thanks, Tom. I mentioned formmail, since there is alot of info here on that. But PHP is okay, too. Notice, that I was too tired and typed the wrong command for php. That's what happens when you use too many languages. ;)

paulv7
12-15-03, 11:55 AM
Originally posted by tbonekkt
EDIT: Also, what is the difference between the $to and the $Email variables? The order should be:

recipient, subject, message, headers [/B]


the $to variable is my address. the $email variable is something the flash file should send it. It is the address the person typed into the Email: line on the form. I do have those in the wrong spot. When I get home tonight I'll play with that see if that is what is wrong.