# Wats wrong with this code

**URL:** <https://forum.kirupa.com/t/wats-wrong-with-this-code/22397>\
**Category:** Uncategorized\
**Created:** [June 3, 2003, 5:56pm UTC](https://forum.kirupa.com/t/wats-wrong-with-this-code/22397 "2003-06-03T17:56:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mansour](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@mansour](https://forum.kirupa.com/u/mansour)\
**Post date:** [June 3, 2003, 5:56pm UTC](https://forum.kirupa.com/t/wats-wrong-with-this-code/22397/1 "2003-06-03T17:56:18Z")

</div>

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

[http://www.pyramids-inc.com/mailform.html](http://www.pyramids-inc.com/mailform.html)

```php

<?
$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

```auto

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:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 3, 2003, 6:01pm UTC](https://forum.kirupa.com/t/wats-wrong-with-this-code/22397/2 "2003-06-03T18:01:29Z")

</div>

you can only load variables into Flash, not commands.

```php
print "frame=48";

```

then have flash give the command

```auto
_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…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 3, 2003, 6:20pm UTC](https://forum.kirupa.com/t/wats-wrong-with-this-code/22397/3 "2003-06-03T18:20:21Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 4, 2003, 4:51pm UTC](https://forum.kirupa.com/t/wats-wrong-with-this-code/22397/4 "2003-06-04T16:51:29Z")

</div>

```php
<?
phpinfo();
?>

```

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