rendered paste body<?php // Include the guts of the program. include "respond.php"; // Get results from last run if (isset($HTTP_POST_VARS['last'])){ $last = $HTTP_POST_VARS['last']; } if (isset($HTTP_POST_VARS['input'])){ // Start the session or get the existing session. session_start(); $myuniqueid=session_id(); }?><html><head><title>Michelle</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><link href="../src/style.css" rel="stylesheet" type="text/css" /><script src="../SpryAssets/SpryValidationTextField.js" type="text/javascript"></script></head><body bgcolor="#cccccc" onLoad="document.form1.input.focus();"><?phpif (isset($HTTP_POST_VARS['input'])){ // Here is where we get the reply. $botresponse=replybotname($HTTP_POST_VARS['input'],$myuniqueid,$HTTP_POST_VARS['botname']); // Print the results.print "<table width=100% border=0 cellspacing=0 cellpadding=0>";if (isset($HTTP_POST_VARS['last'])){print "<tr><td class=text>" . $last . "</td></tr>";} else {print "<tr><td><br><br></td></tr>";} print "<tr><td class=text>You: " . $HTTP_POST_VARS['input'] . "</td></tr><tr><td class=text>Michelle: " . $botresponse->response . "</td></tr></table>"; // Save results for display in next run if (isset($HTTP_POST_VARS['input'])){ $last = "<i>You: " . $HTTP_POST_VARS['input'] . "<BR></i><B>Michelle: " . $botresponse->response . "<BR></b>"; } // If first run } else {?> <span class="text">Michelle: Please talk to me</span> <br> <br> <br> <br> <?php } ?><form id="form1" name="form1" method="post" action=""> <span id="inputval"> <input type="text" name="input" size="55" class="input" onKeyPress="this.className='inputActive'; Submit.className='buttonActive'" /> </span> <input type="submit" id="Submit" name="Submit" value="Say" class="button"> <input type="hidden" name="last" value="<?=$last?>"> <input name="botname" type="hidden" value="Michelle"></form></body></html>