# Searching didn't help

**URL:** <https://forum.kirupa.com/t/searching-didnt-help/15417>\
**Category:** Uncategorized\
**Created:** [March 13, 2003, 10:34pm UTC](https://forum.kirupa.com/t/searching-didnt-help/15417 "2003-03-13T22:34:56Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lacuna](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@Lacuna](https://forum.kirupa.com/u/Lacuna)\
**Post date:** [March 13, 2003, 10:34pm UTC](https://forum.kirupa.com/t/searching-didnt-help/15417/1 "2003-03-13T22:34:56Z")

</div>

I KNOW I KNOW…there’s tons of posts around here about php mailto forms…but I couldn’t find even one that actually gave the code to put in the flash file! If someone could just tell me what code to add to my completed form that would be GREAT! Thanks.

:love:

---

<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:** [March 13, 2003, 10:45pm UTC](https://forum.kirupa.com/t/searching-didnt-help/15417/2 "2003-03-13T22:45:59Z")

</div>

you would use loadVariables. I’m not really sure how your file is set up, but say you had two input fields (name & date)

flash script on a button…

```auto

on(press){
     loadVariables("phppage.php", "POST");
}

```

then the php page would look something like

```php

$name = $_POST['name'];
$date = $_POST['date'];

//then do whatever here

```

---

<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:** [March 13, 2003, 11:03pm UTC](https://forum.kirupa.com/t/searching-didnt-help/15417/3 "2003-03-13T23:03:49Z")

</div>

excuse my stubborness but I’ve never used php before so…

i understand that the first code goes on my ‘submit’ button and i’ll have a separate page (the php page) but where do i put my email address? Or what information should I give you so you can tell me this?

:love:

---

<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:** [March 13, 2003, 11:09pm UTC](https://forum.kirupa.com/t/searching-didnt-help/15417/4 "2003-03-13T23:09:03Z")

</div>

well you asked for the Flash code, for the PHP code take a look at this thread:

[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=12746&highlight=php+mail+form](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=12746&highlight=php+mail+form)

---

<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:** [March 13, 2003, 11:10pm UTC](https://forum.kirupa.com/t/searching-didnt-help/15417/5 "2003-03-13T23:10:58Z")

</div>

the link’s bad

---

<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:** [March 13, 2003, 11:15pm UTC](https://forum.kirupa.com/t/searching-didnt-help/15417/6 "2003-03-13T23:15:32Z")

</div>

replace [www.kirupaforum.com](http://www.kirupaforum.com) with the ip  
[http://64.207.155.38/forums/showthread.php?s=&threadid=12746&highlight=php+mail+form](http://64.207.155.38/forums/showthread.php?s=&threadid=12746&highlight=php+mail+form)

---

<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:** [March 13, 2003, 11:16pm UTC](https://forum.kirupa.com/t/searching-didnt-help/15417/7 "2003-03-13T23:16:29Z")

</div>

sorry. forgot the dns hasn’t changed for everyone…

try this:

[http://64.207.155.38/forums/showthread.php?s=&threadid=12746&highlight=php+mail+form](http://64.207.155.38/forums/showthread.php?s=&threadid=12746&highlight=php+mail+form)

---

<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:** [March 14, 2003, 12:00am UTC](https://forum.kirupa.com/t/searching-didnt-help/15417/8 "2003-03-14T00:00:34Z")

</div>

i’ve put all my own variables in the code and put it online and it still doesn’t go to my email.

```php

$ToEmail = "webmaster@cyberwebs.org";

$ToSubject = "Enquiry";

$BrowserType = $HTTP_USER_AGENT;

$MediaTypes = $HTTP_ACCEPT;

$ServerName= $REMOTE_ADDR;

$EmailBody = "$textd 
 $textp 
 $textm";

mail($ToName." <".$ToEmail.">",$ToSubject, $EmailBody, "From: ".$FirstName." <".$Email.">");
?>

```

---

<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:** [March 14, 2003, 12:02am UTC](https://forum.kirupa.com/t/searching-didnt-help/15417/9 "2003-03-14T00:02:42Z")

</div>

You have to initiate the post array to collect the variables from the flash page:

this goes on top of PHP page…

```php

$name = $_POST['name'];

```

do that for each variable that you send from your flash movie…

---

<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:** [March 14, 2003, 12:04am UTC](https://forum.kirupa.com/t/searching-didnt-help/15417/10 "2003-03-14T00:04:34Z")

</div>

```php
_huh? < you +guys _are **smart == >

```

---

<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:** [March 14, 2003, 12:05am UTC](https://forum.kirupa.com/t/searching-didnt-help/15417/11 "2003-03-14T00:05:32Z")

</div>

also check out this page for more about mail, i have never used it, but I think you are putting the wrong variable in…

[http://www.php.net/manual/en/function.mail.php](http://www.php.net/manual/en/function.mail.php)

I don’t think you put the name in, just the email address as the “string to”

---

<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:** [March 14, 2003, 12:10am UTC](https://forum.kirupa.com/t/searching-didnt-help/15417/12 "2003-03-14T00:10:11Z")

</div>

yeah change it to:

```php

mail($ToEmail, $ToSubject, $EmailBody, "From: ".$FirstName." <".$Email.">");

```

that worked…

---

<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:** [March 14, 2003, 1:45am UTC](https://forum.kirupa.com/t/searching-didnt-help/15417/13 "2003-03-14T01:45:26Z")

</div>

my EXACT php

```php

$name = $_POST['name'];
$phone = $_POST['phone'];
$email = $_POST['email'];

mail($ToEmail, $ToSubject, $EmailBody, "From: ".$FirstName." <".$Email.">");

```

Those top 3 items will be collected and I added that last line like you indicated…now I suppose I fill in the $ToEmail with my email but I’ve tried and it STILL doesn’t work. i took a look at the [php.com](http://php.com) site but it’s like looking at a foreign language (actually it couldn’t BE more foreign…lol) and so I can’t even use it to search out what’s wrong. Sorry but once I’ve got this working I’m sure I can get a grasp on php. Thanks for the patience and help you’ve given. :love:
