Thanks Daniel, that makes sense.  So my refined question should probably how
would I get that form post/get command to also generate an HTML command that
causes a sound to be played. The page refreshes every two minutes so I guess
I would not want a sound command that executes every time the page is
refreshed, I'll need to try find a command that gets executed only when the
form contents are received and posted to the page.  Back to thinking..

Andy

On 5/4/07, Daniel Israel <[EMAIL PROTECTED]> wrote:
>
>   > 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] <dan%40ebji.org>
> http://www.customcodebydan.com
> AIM: JudoDanIzz
>
> (A)bort, (R)etry, (I)nfluence with large hammer.
>
>
>  
>



-- 
Andy K3UK
Skype Me :  callto://andyobrien73
www.obriensweb.com


[Non-text portions of this message have been removed]

Reply via email to