# Php, and pop ups

**URL:** <https://forum.kirupa.com/t/php-and-pop-ups/11629>\
**Category:** Uncategorized\
**Created:** [January 20, 2003, 11:48am UTC](https://forum.kirupa.com/t/php-and-pop-ups/11629 "2003-01-20T11:48:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimw00d](https://avatars.discourse-cdn.com/v4/letter/j/46a35a/32.png) [@jimw00d](https://forum.kirupa.com/u/jimw00d)\
**Post date:** [January 20, 2003, 11:48am UTC](https://forum.kirupa.com/t/php-and-pop-ups/11629/1 "2003-01-20T11:48:29Z")

</div>

I am using a php script to send information from a flash site to my mail box. I would like to build in a function to return the status of the email and display the result in a pop up html window, I have used javascript to launch pop-ups in html but not in php.

i.e. if the mail is sent successfully I would like a pop up window with this result

and in turn a pop up with an alternative message should the mail fail.

An if condition in the php is an obvious start, where do I go from here?

regards

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 20, 2003, 12:04pm UTC](https://forum.kirupa.com/t/php-and-pop-ups/11629/2 "2003-01-20T12:04:40Z")

</div>

use PHP to echo the javascript pop-up function
