# Php form $from\_header

**URL:** <https://forum.kirupa.com/t/php-form-from-header/188749>\
**Category:** Uncategorized\
**Created:** [May 10, 2006, 2:17pm UTC](https://forum.kirupa.com/t/php-form-from-header/188749 "2006-05-10T14:17:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pucca](https://avatars.discourse-cdn.com/v4/letter/p/5f8ce5/32.png) [@pucca](https://forum.kirupa.com/u/pucca)\
**Post date:** [May 10, 2006, 2:17pm UTC](https://forum.kirupa.com/t/php-form-from-header/188749/1 "2006-05-10T14:17:58Z")

</div>

Hi there  
I’ve got a submit form on a website, but doesn’t have an email field. Usually, when I develop a form to send mail, I include the email as the $from\_header. Like this :

```php
        $header = "From: " . $email;
mail("my@email.com", $subject, $body, $header);

```

But now, I want the name field to show in the From column… Like this :

```php
$header = "From: " . $name;
 mail("my@email.com", $subject, $body, $header);

```

but if I do that, it puts on this long “looks like an email address” after the name.

Hope you understand?

Please let me know how I can make only the senders name show in the email.

Thanks!
