# PHP mailing list form (new)

**URL:** <https://forum.kirupa.com/t/php-mailing-list-form-new/29231>\
**Category:** flash\
**Created:** [August 24, 2003, 4:05pm UTC](https://forum.kirupa.com/t/php-mailing-list-form-new/29231 "2003-08-24T16:05:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![asignofcollapse](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@asignofcollapse](https://forum.kirupa.com/u/asignofcollapse)\
**Post date:** [August 24, 2003, 4:05pm UTC](https://forum.kirupa.com/t/php-mailing-list-form-new/29231/1 "2003-08-24T16:05:18Z")

</div>

Ok,

Maybe i wasnt as clear as i wanted to be. However, i think i understand exactly what i want now. I still cant do it yet though.

What im trying to do is take an input box from flash. The person viewing the site would put their e-mail address in the input text box. They would press an enter button next to it. Now, using PHP, how to i just get THEIR e-mail address to email MY email address. I dont want a message or anything of that nature. All i want (at the most) is their e-mail address, and maybe their name.

So far with everything ive found on here, all it is doing is e-mailing the address put into the EMAIL box. How can i get it to send their information as variables to PHP and then have PHP send an e-mail from their information to my e-mail address?

Sorry to bother again with this question, but like i said, i dont know anything about PHP so this is new to me.

Thanx, for any help in advance.

---

<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:** [August 24, 2003, 4:16pm UTC](https://forum.kirupa.com/t/php-mailing-list-form-new/29231/2 "2003-08-24T16:16:23Z")

</div>

I don’t think you can. The line “From:” depends on your server. If it uses Apache for example the line From will always be Apache. At least for me. Maybe this is possible, I don’t know.

---

<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:** [August 24, 2003, 7:41pm UTC](https://forum.kirupa.com/t/php-mailing-list-form-new/29231/3 "2003-08-24T19:41:35Z")

</div>

nevermind… i figured it out… i was putting something in the wrong spot… i got it now though… thanx

---

<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:** [August 24, 2003, 7:47pm UTC](https://forum.kirupa.com/t/php-mailing-list-form-new/29231/4 "2003-08-24T19:47:24Z")

</div>

Can you tell me ? I’m interested in knowing 🙂

---

<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:** [August 24, 2003, 10:36pm UTC](https://forum.kirupa.com/t/php-mailing-list-form-new/29231/5 "2003-08-24T22:36:31Z")

</div>

Wow this is VERY interesiting! I barely know anything on Flash and all I want to know is how to change my Animated Gif to a Preloader! ☹

---

<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:** [August 24, 2003, 11:01pm UTC](https://forum.kirupa.com/t/php-mailing-list-form-new/29231/6 "2003-08-24T23:01:03Z")

</div>

Basicly i took some scripting from another post and a tute that somebody else did, and altered it.

The original code was here:  
[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=17604&highlight=PHP](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=17604&highlight=PHP)

Its in Tute 2 (variables from flash to PHP to send mail)

The original code is written out so that if you were to put your e-mail address in the EMAIL box, it would send the e-mail to you. So basicly it was sending the email to whatever email address was put into the email text box. It wasnt directing the email address, name, message ect to a different email address.

So i did some guessing and read a few more things around here and else where and came up with this.

\<?

// Recieving Variables…

$Name = $\_POST[‘name’];  
$Email = $\_POST [‘email’];  
$Message = $\_POST[‘message’];  
$Subject = “Test E-mail Tutorial”;  
$Header = “From: $Name \<$Email\>”;  
$toEmail = "yourname@yourdomain.com";

//Performing Mail script…  
$new = mail($Email, $Subject, $Message, Header, $toEmail);

?\>

Basicly i added $toEmail as another string, and specified within that field where to send the information. This would be where you would put the address that is to recieve the e-mails sent out.

At the time i was using a yahoogroups as a mailing list, but then realized after i got this whole thing to work, that they make you do a lot of running around afterwards to just sign up. Replying to comfirmation e-mails and signing up for yahoo, blah blah blah. So now… if anybody has any good suggestions for good mailing list clients i could use. It would be much appreciated.

If you cant understand what im trying to say, or if im not explaining it well enough, please let me know and i will try to better it. But im still new to PHP and i really dont understand it to much yet, so i apologize.
