PDA

View Full Version : wats wrong with this code



mansour
June 3rd, 2003, 01:56 PM
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\nSenders Email: $remail\nSenders Company: $scompany\n\nMessage Sent:\n$scomments\n\nQuestions: $Questions\n";

$EmailFooter="\nThis 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:

Jubba
June 3rd, 2003, 02:01 PM
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..

mansour
June 3rd, 2003, 02:20 PM
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?

eyezberg
June 4th, 2003, 12:51 PM
<?
phpinfo();
?>
save, upload, and browse to, if you have php, all the info about the version, modules etc will show up