# HTML/PHP mail Form Tutorial

**URL:** https://forum.kirupa.com/t/html-php-mail-form-tutorial/15427
**Category:** classic bestof
**Created:** [March 14, 2003, 2:27am UTC](https://forum.kirupa.com/t/html-php-mail-form-tutorial/15427 "2003-03-14T02:27:30Z")
**Posts on this page:** 4
**Page:** 2

<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: [June 3, 2003, 5:42pm UTC](https://forum.kirupa.com/t/html-php-mail-form-tutorial/15427/21 "2003-06-03T17:42:17Z")

</div>

haha… I just sent you a PM - didn’t know if you were still subscribed… ok, that makes sense. I couldn’t figure out where the “submit” came from.

you should also mention that on the tag for the submit button, you have to add name=“submit”, like this

```php
 <input type="submit" name="submit" value="submit">

```

Otherwise, the variable does not exist, and the if statement is false. You don’t have that on your first post.

---

<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: [June 3, 2003, 5:42pm UTC](https://forum.kirupa.com/t/html-php-mail-form-tutorial/15427/22 "2003-06-03T17:42:41Z")

</div>

good call. forgot to mention that.

---

<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: [June 3, 2003, 7:48pm UTC](https://forum.kirupa.com/t/html-php-mail-form-tutorial/15427/23 "2003-06-03T19:48:33Z")

</div>

Actually, I caught those when I first wrote it out. Typos happen - no big whoop. But I still get that illusive extra email…Obviously it’s sending an extra blank form because I get the \<\> that’s around the $fromEmail.  
???

---

<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: [June 3, 2003, 8:12pm UTC](https://forum.kirupa.com/t/html-php-mail-form-tutorial/15427/24 "2003-06-03T20:12:20Z")

</div>

Hey Jubba - I made this after learning from your tutorial:

[www.cahsee.org](http://www.cahsee.org) - go to the bottom, and click where it says “report a bug on this page.”

And voila! There’s my form. Thanks man.  
Raf

[Previous page](https://forum.kirupa.com/t/html-php-mail-form-tutorial/15427.md?page=1)
