PDA

View Full Version : Trouble Will PHP/Flash Contact Mail Form



Kelly Nunes
November 18th, 2002, 06:14 PM
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

h88
November 18th, 2002, 06:20 PM
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...\n\n";
foreach($HTTP_POST_VARS as $key => $value) {
$key = substr($key, 0, -4);
$body .= "$key: $value\n";
}
$from = $HTTP_POST_VARS['name_txt'] . " <" . $HTTP_POST_VARS['email_txt'] . ">";
mail($recipient, $HTTP_POST_VARS['subject_txt'], $body, "From: $from");
?>

Kelly Nunes
November 18th, 2002, 07:01 PM
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

h88
November 18th, 2002, 07:02 PM
No Problem :)

Kelly Nunes
November 18th, 2002, 07:07 PM
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

h88
November 19th, 2002, 04:50 AM
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!

zephn
January 23rd, 2003, 10:39 PM
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...\n\n";
foreach($HTTP_POST_VARS as $key => $value) {
$key = substr($key, 0, -4);
$body .= "$key: $value\n";
}
$from = $HTTP_POST_VARS['name_txt'] . " <" . $HTTP_POST_VARS['email_txt'] . ">";
mail($recipient, $HTTP_POST_VARS['subject_txt'], $body, "From: $from");
?>