Wats wrong with this code

this code doesn’t work at all, i dont’ know the problem please help me

http://www.pyramids-inc.com/mailform.html


<?
$ToEmail = "sindbad006@hotmail.com";

$ToName = "r17";
$ToSubject = "Pyramids Entertainment";

$EmailBody = "Sent By: sname
Senders Email: $remail
Senders Company: $scompany

Message Sent:
$scomments

Questions: $Questions
";

$EmailFooter="
This message was sent by: $sname from $REMOTE_ADR We will try and keep you updated";

$Message = $EmailBody.$EmailFooter;

mail($rname." <".$remail.">",$ToSubject, $Message, "From: ".$sname." <".$semail.">");


Print "_root.process.gotoAndPlay(48)";

?>

all the variables in the php above are all names applied in the flash file.

the last 2 lines in the action script are


else {
		loadVariablesNum("snowMailPHP.php", "0", "POST");
		_root.process.gotoAndPlay(2);
	}
}

the server i’m using accepts php.

so wat seems to be the problem? please help… :q:

you can only load variables into Flash, not commands.

print "frame=48";

then have flash give the command

_root.process.gotoAndPlay(frame);

something like that might work for your Flash end…

the mail() code lookts right. Check your server again, sometimes they disable the mail() function to keep people from mass mailing…

thanx Juba, i don’t know the client’s server, but he had a mailing list before(isn’t that php?), umm how do i check my server?

<?
phpinfo();
?>

save, upload, and browse to, if you have php, all the info about the version, modules etc will show up