PX : code

Music On/Off by Bill Zeller
Download this code


<?php
  
if ( $soundbox ) {
$ifsound =  "checked";
$sound =  "<EMBED SRC=\"cannon.mid\" CONTROLS=console HEIGHT=60 WIDTH=144 LOOP=\"TRUE\" AUTOSTART=\"TRUE\"><BR>";
  } else {
$ifsound =  "";
$sound =  "";
  }
?>
<head>
</head>
<body>
<? echo $sound; ?>
<FORM ACTION=sound.php3>
Sound??<INPUT TYPE="checkbox" NAME="soundbox" VALUE="soundboxon" <? echo $ifsound; ?>><BR> 
<INPUT TYPE=submit>
</FORM>

Comments or questions?
PX is running PHP 5.2.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.