<?php if(isset($_GET['did']))  { ?>
<form name="reg" action="<?php echo $action; ?>" method="post">
<table width="274" border="0" align="center" cellpadding="2" cellspacing="0">
  <tr><td></td></tr>
  <tr><td></td></tr>
  <tr><td></td></tr>
  <tr>
    <td width="95"><div align="right">Subject:</div></td>
    <td width="171"><input readonly type="text" name="subject" size="51" value="Reporting design by <?php echo $_GET['dname']; ?>"/></td>
  </tr>
    <tr><td></td></tr>
  <tr><td></td></tr>
  <tr><td></td></tr>
  <tr>
    <td><div align="right">Message Content:</div></td>
    <td><textarea rows="5" cols="40" name="body"></textarea></td>
  </tr>
    <td><input name="did" type="hidden" value="<?php echo $did ; ?>" /></td>
    <td><input name="dname" type="hidden" value="<?php echo $dname ; ?>" /></td> 
    <td><input name="sketch_id" type="hidden" value="<?php echo $sketch_id ; ?>" /></td> 
    <td><input name="reporter" type="hidden" value="<?php echo $reporter ; ?>" /></td> 
    <td><input name="sketchid" type="hidden" value="<?php echo $sketchid ; ?>" /></td> 
    <td><input name="reporter_id" type="hidden" value="<?php echo $reporter_id ; ?>" /></td> 
    <td><input name="customer" type="hidden" value="<?php echo $customer ; ?>" /></td> 
  <tr>
    <td><div align="right"></div></td>
    <td><input name="submit" type="submit" value="Submit" /></td>
  </tr>
</table>
</form>
<?php } else { ?>
<table width="274" border="0" align="center" cellpadding="2" cellspacing="0">
  <tr><td></td></tr>
  <tr><td></td></tr>
  <tr><td></td></tr>
  <tr> 
  </tr>
    <tr><td></td></tr>
  <tr><td></td></tr>
  <tr><td></td></tr>
  <tr>
    <td> Message Submitted Successfully</td>
  </tr>

  <tr> 
  </tr>
</table>
<?php } ?>