# Three telephone boxes in a contact form

**URL:** <https://forum.kirupa.com/t/three-telephone-boxes-in-a-contact-form/260532>\
**Category:** programming\
**Created:** [May 16, 2008, 3:03pm UTC](https://forum.kirupa.com/t/three-telephone-boxes-in-a-contact-form/260532 "2008-05-16T15:03:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![atlnycdude24](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@atlnycdude24](https://forum.kirupa.com/u/atlnycdude24)\
**Post date:** [May 16, 2008, 3:03pm UTC](https://forum.kirupa.com/t/three-telephone-boxes-in-a-contact-form/260532/1 "2008-05-16T15:03:55Z")

</div>

Hey room,

I created a contact form that have user inputs for name, comments, and a telephone inputs with three boxes for

the area code, prefix, and the suffix.

when i receive the email after the user hits the submit button I would like to see the open and closed parenthesis for the area code and the - to separate the prefix and suffix.

ig. (770) 343-3432

Here is the code that I wrote

```php

$meessge .= 'Telephone: (' . $phone_areacode . ') ' . $phone_prefix . '-' . $phone_suffix .'
';

```

I don’t get any errors but how come i only receive the name and comments from the user? Please help. Thanks.

---

<div class="post-metadata">

**Author:** ![simplistik](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/simplistik/32/7747_2.png) [@simplistik](https://forum.kirupa.com/u/simplistik)\
**Post date:** [May 16, 2008, 3:32pm UTC](https://forum.kirupa.com/t/three-telephone-boxes-in-a-contact-form/260532/2 "2008-05-16T15:32:44Z")

</div>

cause you’re not posting the telephone fields … need to see the rest of your php and your html. only need to see the html that relates to the phone fields

---

<div class="post-metadata">

**Author:** ![atlnycdude24](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@atlnycdude24](https://forum.kirupa.com/u/atlnycdude24)\
**Post date:** [May 16, 2008, 3:52pm UTC](https://forum.kirupa.com/t/three-telephone-boxes-in-a-contact-form/260532/3 "2008-05-16T15:52:11Z")

</div>

sure the files are attached in this replay. thanks.

---

<div class="post-metadata">

**Author:** ![atlnycdude24](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@atlnycdude24](https://forum.kirupa.com/u/atlnycdude24)\
**Post date:** [May 17, 2008, 2:13am UTC](https://forum.kirupa.com/t/three-telephone-boxes-in-a-contact-form/260532/4 "2008-05-17T02:13:40Z")

</div>

hello anyone?

---

<div class="post-metadata">

**Author:** ![actionAction](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/actionaction/32/3987_2.png) [@actionAction](https://forum.kirupa.com/u/actionAction)\
**Post date:** [May 17, 2008, 3:16am UTC](https://forum.kirupa.com/t/three-telephone-boxes-in-a-contact-form/260532/5 "2008-05-17T03:16:10Z")

</div>

My guess is that your line says meesage instead of message:  
$meessge = …
