<? if ( ! strstr($_SERVER['HTTP_USER_AGENT'], "MSIE") )
   {   include(
"convert_demo.php");  exit;  }
?>
<html xmlns:m="http://www.w3.org/1998/Math/MathML">
<head>
<title>MathML Converter Demo for IE with MathPlayer</title>
   <object
    id="icmdemo"
    classid="clsid:32F66A20-7614-11D4-BD11-00104BD3F987"
    codebase="http://www.dessci.com/dl/mathplayer.cab">
   </object>
   <? print('<?import namespace="m" implementation="#icmdemo" ?>'); ?>
</head>
<body style="padding: 50px; background-color: #e0e0e0">
<?  $expr = $_POST['expr'];
    if (
$_POST['simp'] )
    {   
$simp="yes";  }
    else
    {   
$simp="no";   }
    
$br = "ie";
    if (
$expr )
       include(
"convert_client.php" );
    else
    {
?>
<p>Make sure you are using IE 6 or higher with MathPlayer
already installed.  You can go to <a href="http://www.dessci.com/en/products/mathplayer/download.htm">this page</a> to install MathPlayer.</p>
<form action="" method="post">
<p><b>Infix expression:</b>&nbsp;&nbsp;<input name="expr" />&nbsp;&nbsp;<input type="submit" value=" Convert to MathML " /> <br /><br />
<input id="si" type="checkbox" name="simp" value="yes" /> <label for="si">with simplification</label></p>
</form>
<? }  ?>
</body></html>