# beep on button press

**URL:** <https://www.phphelp.com/t/beep-on-button-press/22284>\
**Category:** PHP Installation and Configuration\
**Created:** [March 10, 2014, 3:02pm UTC](https://www.phphelp.com/t/beep-on-button-press/22284 "2014-03-10T15:02:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![techyguy](https://www.phphelp.com/letter_avatar_proxy/v4/letter/t/c2a13f/32.png) [@techyguy](https://www.phphelp.com/u/techyguy)\
**Post date:** [March 10, 2014, 3:02pm UTC](https://www.phphelp.com/t/beep-on-button-press/22284/1 "2014-03-10T15:02:55Z")

</div>

Hi

iam trying to add a beep when a user clicks on a page button this is my code

[Home](#home)

what do i need to do to add a beep (mp3 file) to the button

---

<div class="post-metadata">

**Author:** ![maulikumrania](https://www.phphelp.com/letter_avatar_proxy/v4/letter/m/e9a140/32.png) [@maulikumrania](https://www.phphelp.com/u/maulikumrania)\
**Post date:** [December 15, 2015, 11:19am UTC](https://www.phphelp.com/t/beep-on-button-press/22284/2 "2015-12-15T11:19:11Z")

</div>

Hello,

You should try to add beep using javascript code as i suggest you…  
Here’s are some references which helps You.  
1)[http://www.webdeveloper.com/forum/showthread.php?165602-Button-to-play-wav-or-mp3-clips](http://www.webdeveloper.com/forum/showthread.php?165602-Button-to-play-wav-or-mp3-clips)  
2)[http://stackoverflow.com/questions/8489710/play-an-audio-file-using-jquery-when-a-button-is-clicked](http://stackoverflow.com/questions/8489710/play-an-audio-file-using-jquery-when-a-button-is-clicked)

Or You can try as:-  
[php]  
[Home](#home)

[/php]

---

<div class="post-metadata">

**Author:** ![astonecipher](https://www.phphelp.com/user_avatar/www.phphelp.com/astonecipher/32/2797_2.png) [@astonecipher](https://www.phphelp.com/u/astonecipher)\
**Post date:** [December 15, 2015, 2:38pm UTC](https://www.phphelp.com/t/beep-on-button-press/22284/3 "2015-12-15T14:38:53Z")

</div>

[member=76412]maulikumrania[/member], This post is long forgotten. Please do not necropost.

---

<div class="post-metadata">

**Author:** ![ErnieAlex](https://www.phphelp.com/letter_avatar_proxy/v4/letter/e/bc8723/32.png) [@ErnieAlex](https://www.phphelp.com/u/ErnieAlex)\
**Post date:** [December 15, 2015, 5:41pm UTC](https://www.phphelp.com/t/beep-on-button-press/22284/4 "2015-12-15T17:41:54Z")

</div>

[member=72272]astonecipher[/member], LOL Interesting term, “necropost”… I like that!

And, Yes, Techyguy, use JS… Or, even JQuery attached to the button…
