# Php Mail Form!

**URL:** https://forum.kirupa.com/t/php-mail-form/14474
**Category:** programming
**Created:** [February 26, 2003, 8:30pm UTC](https://forum.kirupa.com/t/php-mail-form/14474 "2003-02-26T20:30:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![awd](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@awd](https://forum.kirupa.com/u/awd)
#### Post date: [February 26, 2003, 8:30pm UTC](https://forum.kirupa.com/t/php-mail-form/14474/1 "2003-02-26T20:30:43Z")

</div>

can someone please give me the code to make a MAILFORM send it to hotmail account? I would like to add my own options how do I do that?  
I would love to learn how to do this from a tutorial anyone know a good one? if not could someone please help me out!! the options that i wanted to add are alot of em! like probaly around 50 options! so…lol plz help me someone

---

<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: [February 26, 2003, 9:05pm UTC](https://forum.kirupa.com/t/php-mail-form/14474/2 "2003-02-26T21:05:07Z")

</div>

didnt you already post this?  
just because you make more then one topic, doesnt mean people know the answer. :trout:

[www.hostedscripts.com](http://www.hostedscripts.com) man, I told you.

---

<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 2, 2003, 4:37pm UTC](https://forum.kirupa.com/t/php-mail-form/14474/3 "2003-03-02T16:37:25Z")

</div>

I mostly do it like this, In a html file i put this code:

```php
<form action="(the folder where the php is located)/analyze.php" method="POST" target="_blank">
  <p>Mail me!</p>
  <table width="100%" border="0" cellspacing="10">
    <tr> 
      <td width="15%"><font face="Arial" size="2"><b>Name:</b></font></td>
      <td width="85%"><font face="Arial" size="2"> 
        <input type="text" name="Name" size="50">
        </font></td>
    </tr>
    <tr> 
      <td width="15%"><font face="Arial" size="2"><b>E-mail:</b></font></td>
      <td width="85%"><font face="Arial" size="2"> 
        <input type="text" name="Email" size="50">
        </font></td>
    </tr>
    <tr> 
      <td width="15%" valign="top"><font face="Arial" size="2"><b>Adress:</b></font></td>
      <td width="85%"><font face="Arial" size="2"> 
        <input type="text" name="Adress" size="50">
        <br>
        <input type="text" name="Adress2" size="50">
        </font></td>
    </tr>
    <tr> 
      <td valign="top"><strong>My site?:</strong></td>
      <td width="85%"><p> 
          <input type="radio" name="Thought" value="Sucks">
          Sucks<br>
          <input type="radio" name="Thought" value="Rocks!">
          Rocks! <br>
          <input type="radio" name="Thought" value="Bwaa">
          Bwaa <br>
          <input type="radio" name="Thought" value="Is ok">
          Is ok<br>
          <input type="radio" name="Thought" value="Stupid Question">
          Stupid Question</p></td>
    </tr>
    <tr> 
      <td width="15%" valign="top"><font face="Arial" size="2"><b>Comments:</b></font></td>
      <td width="85%"><font face="Arial" size="2"> 
        <textarea rows="4" name="Comment" cols="37"></textarea>
        </font></td>
    </tr>
    <tr> 
      <td width="15%"></td>
      <td width="85%" bgcolor="#FFFFFF"><input type="submit" value="Submit" name="submit"></td>
    </tr>
  </table>
</form>

```

And I then I need a php file to analyse the questions:

So in the php file (called analyze.php)

```php
<?
$Subject ="Form mail";
$Name ="Name: $Name
";
$Email ="E-Mail: $Email
";
$Adress ="Adress: $Adress
";
$Adress2 =" $Adress2
";
$Thought ="Thought: $Thought
";
$Comments ="Comments: $Comment
";
$Date="Date: " . date("d-m-Y H:i:s") . "

";
mail("My@email.com", "$Subject", "$Date $Name $Email $Adress $Adress $Thought $Comments", "From: $Email");

echo '<font face="Arial" size="2">Your comments are send! Thnx for the reply</font>';
?>

```

I hope it helps, If you have any questions, ask them!

---

<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 3, 2003, 2:39pm UTC](https://forum.kirupa.com/t/php-mail-form/14474/4 "2003-03-03T14:39:09Z")

</div>

[http://www.actionscript.org/showMovie.php?id=338](http://www.actionscript.org/showMovie.php?id=338)

if u need help with it, ask me =)

It works fine!

U MUST HAVE A PHP SUPPORTING SERVER THOUGH!!
