PDA

View Full Version : php flash email



UnblessedOmega
February 13th, 2004, 10:12 PM
i was confused by the php thing...i dont know much about php and i tried following the tutorial but i was onfused about it..
the instructions were a bit hard....can anyone explain the tutorial a bit better?

Jubba
February 14th, 2004, 01:35 AM
the tutorial is as easy as it gets (or else we wouldn't post the tutorial) what part don't you understand and we'll help explain it further..

UnblessedOmega
February 14th, 2004, 01:41 AM
does all the script go together? and where do i put it?
is the tutorial that u can download complete?

<?php
$sendTo = "senocular@hotmail.com";
$subject = "My Flash site reply";
$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] . ">\r\n";
$headers .= "Reply-To: " . $_POST["email"];
$message = $_POST["message"];
mail($sendTo, $subject, $message, $headers);
?>
all together?
and where? i cant get it to work

kill.robot.kill
February 14th, 2004, 02:15 AM
ok, this is the first question I always ask when someone is having problems with php.

Are you sure you are testing it on a server that supports php?

UnblessedOmega
February 14th, 2004, 02:15 AM
the server is ftp.tripod.com
i am not sure
its a free web site:-s

kill.robot.kill
February 14th, 2004, 02:18 AM
have you tried uploading a php info page? or any other page with php?

UNFLUX
February 14th, 2004, 10:47 AM
does tripod even allow php?

Jubba
February 14th, 2004, 11:03 AM
Try this to see if you have PHP access at tripod:

http://www.kirupa.com/web/testphp.htm

then to answer your question:

Yes all that code goes together. Place all of that code into a file called "mail.php" (without the quotes). Change where it says:


$sendTo = "senocular@hotmail.com";
change it to say your e-mail address...

$sentTo = "bobby@google.com";
or whatever your address is...

then follow the tutorial for using the FLash side of things...

oh and to learn more about the PHP basics check out this site:
http://us2.php.net/manual/en/introduction.php