# Adding another thing to a mail form

**URL:** <https://forum.kirupa.com/t/adding-another-thing-to-a-mail-form/226591>\
**Category:** Uncategorized\
**Created:** [May 22, 2007, 2:16pm UTC](https://forum.kirupa.com/t/adding-another-thing-to-a-mail-form/226591 "2007-05-22T14:16:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![suz](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@suz](https://forum.kirupa.com/u/suz)\
**Post date:** [May 22, 2007, 2:16pm UTC](https://forum.kirupa.com/t/adding-another-thing-to-a-mail-form/226591/1 "2007-05-22T14:16:03Z")

</div>

I’ve been following this tutorial - [http://www.tutorial5.com/content/view/82/42](http://www.tutorial5.com/content/view/82/42) on making a mail form -

it works no problem but the thing is… I want to add in a field for the person to enter their phone number, I edited the php code to look like this

```php
<?php
@extract($_POST);
$name = stripslashes($name);
$email = stripslashes($email);
$subject = stripslashes($subject);
$phone = stripslashes($phone);
$text = stripslashes($text);
mail(' info@suzyjohnston.co.uk This e-mail address is being protected from spam bots, you need JavaScript enabled to view it ',$subject,$phone,$text,"From: $name <$email>");
echo("Thank you for your interest, your e-mail was sent.");
?>

```

As you can see I added in this code to the above…

```php
$phone = stripslashes($phone);

```

```php
',$subject,$phone,$text,"From: $name <$email>");

```

but when I add this into the code it messes up who the sender of the email was - it just says in the ‘From’ field

> From [suz.punch.dreamhost.com](http://suz.punch.dreamhost.com)  
> anyone any ideas whats going wrong?

you can check out the form at [http://suzyjohnston.co.uk](http://suzyjohnston.co.uk/)
