# Sending FROM header from PHP FORM

**URL:** <https://forum.kirupa.com/t/sending-from-header-from-php-form/210744>\
**Category:** programming\
**Created:** [December 21, 2006, 4:58pm UTC](https://forum.kirupa.com/t/sending-from-header-from-php-form/210744 "2006-12-21T16:58:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![buildakicker](https://avatars.discourse-cdn.com/v4/letter/b/eada6e/32.png) [@buildakicker](https://forum.kirupa.com/u/buildakicker)\
**Post date:** [December 21, 2006, 4:58pm UTC](https://forum.kirupa.com/t/sending-from-header-from-php-form/210744/1 "2006-12-21T16:58:15Z")

</div>

Hello,

I am trying to have a form have the REPLY TO email the same as the email the User has put in the form, Am I doing this right?

```auto

header("Location: " . $_SERVER['PHP_SELF']);
header("From: " . $email);

```

I don’t keep getting the wrong FROM in my inbox… it’s from the server I am on.

Thanks.
