# Trouble Will PHP/Flash Contact Mail Form

**URL:** <https://forum.kirupa.com/t/trouble-will-php-flash-contact-mail-form/8335>\
**Category:** programming\
**Created:** [November 18, 2002, 11:14pm UTC](https://forum.kirupa.com/t/trouble-will-php-flash-contact-mail-form/8335 "2002-11-18T23:14:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kelly\_Nunes](https://avatars.discourse-cdn.com/v4/letter/k/b5e925/32.png) [@Kelly\_Nunes](https://forum.kirupa.com/u/Kelly_Nunes)\
**Post date:** [November 18, 2002, 11:14pm UTC](https://forum.kirupa.com/t/trouble-will-php-flash-contact-mail-form/8335/1 "2002-11-18T23:14:45Z")

</div>

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

---

<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:** [November 18, 2002, 11:20pm UTC](https://forum.kirupa.com/t/trouble-will-php-flash-contact-mail-form/8335/2 "2002-11-18T23:20:47Z")

</div>

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

```php
<?
$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");
?>

```

---

<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:** [November 19, 2002, 12:01am UTC](https://forum.kirupa.com/t/trouble-will-php-flash-contact-mail-form/8335/3 "2002-11-19T00:01:51Z")

</div>

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

---

<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:** [November 19, 2002, 12:02am UTC](https://forum.kirupa.com/t/trouble-will-php-flash-contact-mail-form/8335/4 "2002-11-19T00:02:29Z")

</div>

No Problem 🙂

---

<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:** [November 19, 2002, 12:07am UTC](https://forum.kirupa.com/t/trouble-will-php-flash-contact-mail-form/8335/5 "2002-11-19T00:07:41Z")

</div>

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

---

<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:** [November 19, 2002, 9:50am UTC](https://forum.kirupa.com/t/trouble-will-php-flash-contact-mail-form/8335/6 "2002-11-19T09:50:08Z")

</div>

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!

---

<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:** [January 24, 2003, 3:39am UTC](https://forum.kirupa.com/t/trouble-will-php-flash-contact-mail-form/8335/7 "2003-01-24T03:39:13Z")

</div>

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”);  
?\>
