Make flash send the form's variables to email.php. Contents of email.php:

<?
$message = "Your message here. If you'd like to use some of the form
elements, call them as $varname. To make a newline in the mail message type
\n.";

// $toemailaddress will need to be set to the recipient's email address. In
flash, set a form element to be named toemailaddress. In PHP, uncomment the
line below.
// $toemailaddress = "[EMAIL PROTECTED]";

if ( mail ($toemailaddress,'Your message subject here,$message,'From:
[EMAIL PROTECTED]')){
echo "?sent=true";
} else {
echo "?sent=false";
}
?>


This script will also tell your flash file whether the mail was successfully
sent or not, by outputting sent as 'true' or 'false'.




"Scott" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> All,
> I have just found out that the VB script that I have used to send email
from
> my web site is null and void, apparently the server does not do VB or
> something along those lines (security) but that's not the issue.  I have
> contacted my teh people who host my site and they told me I have to use
PHP
> script.
> My website (Flash) needs to be able to send emails and membership
> applications from form I have already created, does anyone have any
scripts
> and directions that some with absolutely no code writing skills can use.
> Your help is greatly appreciated!!
> Billy
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to