> I'm just beginning to try to learn PHP scripts, a friend 
> compiled a script that works well and uses a form post method 
> to essentially create an IRC type chat scenario.  A couple of 
> my users would like a "beep" or some similar audio sound that 
> would alert them when a fresh line of text arrives on their 
> browser/screen.  
> 
> Here's an example of what I am dealing with ...
> 
> <?php if($cooked == 1) { ?><p /><form method="post"
> action="skccsked.php"><p>Enter your message here <input size="50"
> maxlength="200"  name="text" /> <input type="submit" value="Post"
> /></p></form><?php } else { echo "<p>You must create an info 
> cookie to post.</p>"; } ?>
> 
> Is there an simple command that I could add to the script 
> that would play a brief "beep" each time the above is executed ?
> 
> Andy.

That's not really a PHP question.  PHP is executed on the server, the user
will get the browser output you generate.  What this means is that you
should be looking for a way for the browser to make a sound, not your PHP
script.  To that end, I believe there is a SOUND tag in HTML and there's
probably a way to do something in javascript as well.  (can't be more
specific, I haven't done it...)


-D. Israel
[EMAIL PROTECTED]
http://www.customcodebydan.com 
AIM: JudoDanIzz

(A)bort, (R)etry, (I)nfluence with large hammer.
 

Reply via email to