Trouble Will PHP/Flash Contact Mail Form

Hey Guys and Girls,

I am trying to create a contact form using Flash MX and PHP. My for is complete graphically. However, I can’t get the thing to work??? Not sure what the problem is, but I can’t figure it out. Is there anyone out there who cold help me? I have attached a zip file containing my flash and PHP files. Take a look and let me know if you can help.

Thanks,

Kelly

I posted many times a php script mailer, why did’nt you run a search, anyways, here u go:

<?
$recipient = "fake@fake.com";
unset($HTTP_POST_VARS['onLoad']);
unset($HTTP_POST_VARS['clear']);
$body = "The following information was submitted...

";
foreach($HTTP_POST_VARS as $key => $value) {
	$key = substr($key, 0, -4);
	$body .= "$key: $value
";
}
$from = $HTTP_POST_VARS['name_txt'] . " <" . $HTTP_POST_VARS['email_txt'] . ">";
mail($recipient, $HTTP_POST_VARS['subject_txt'], $body, "From: $from");
?>

Hey H88,

Thanks for responding to my post. I appreciate the help. I have to admit, however, that I am new to PHP and I’m still having trouble. Is there any other assistance you or anyone else could provide?

Thanks,

Kelly

No Problem :slight_smile:

h88,

Were you able to look at the files I uploaded? Might give you a better idea of what I’m trying to acheive.

Thanks,

Kelly

You should change the variables in the PHP Script, or even add if u want to submit more, anyways, i’ll try making an Fla now!

in the text provided by h88 which are the modifiers that identify the individual text submitted by the user? I mean how would I apply my boxes, (from when who date howmany)

<?
$recipient = "fake@fake.com";
unset($HTTP_POST_VARS[‘onLoad’]);
unset($HTTP_POST_VARS[‘clear’]);
$body = "The following information was submitted…

";
foreach($HTTP_POST_VARS as $key => $value) {
$key = substr($key, 0, -4);
$body .= "$key: $value
“;
}
$from = $HTTP_POST_VARS[‘name_txt’] . " <” . $HTTP_POST_VARS[‘email_txt’] . “>”;
mail($recipient, $HTTP_POST_VARS[‘subject_txt’], $body, “From: $from”);
?>