<th colspan="2" bgcolor="blue"><font color="white">Enter Something</font></th> <tr> <td>Name</td> <td><input type="text" name="username" size="20" value="<?php print $username; ?> "></td> </tr> <tr> <td>A word</td> <td><input type="text" name="string" size="20" value="<?php print $string; ?> "></td> </tr> <th colspan="2" bgcolor="blue"><font color="white"><input type="submit" name="submit" value="Submit"></font></td> <!-- --- end form --- --> <?php if ($string == "") { echo " </table></center></form>\n"; } else { echo " <tr>\n" . " <th colspan=\"2\">\n" . " <font color=\"blue\">example extends sq, it's constructor says => "; $stuff = new example($string); echo "</font></th>\n" . " </table></center></form>\n"; } echo "function done() of class example spews => "; $stuff->done(); ?>