<form action="inv_edit.php" method="post">
<input type="hidden" name="pflag" value="edit">
<input type="hidden" name="id" value="<%$id%>">
<table cellpadding="1" cellspacing="0" border="0" align="center" width="100%" class="tbl_border">
<tr>
  <td>
    <table cellpadding="4" cellspacing="0" border="0" width="100%">
      <tr>
        <td class="tbl_caption" colspan="2">
          Edit Invoice
        </td>
      </tr>
      <tr class="tbl_light">
        <td width="50%">Due Date
         <div class="explanation">The due data of this invoice. Please insert in yyyy-mm-dd date format.</div>
        </td>
        <td width="50%"><input type="text" size="40" name="due_date" value="<%$due_date%>" class="textbg"></td>
      </tr>
      <tr class="tbl_light2">
        <td valign="top">Invoiced to
         <div class="explanation">This should contain the person name or company. You can also include the address here.</div>
        </td>
        <td><textarea name="invoiced_to" cols="40" rows="7"><%$invoiced_to%></textarea></td>
      </tr>
      <tr class="tbl_light">
        <td valign="top">Email</td>
        <td><input type="text" size="40" name="email" value="<%$email%>" class="textbg"></td>
      </tr>
      <tr class="tbl_light2">
        <td valign="top">Service
         <div class="explanation">Your service name.</div>
        </td>
        <td><input type="text" size="40" name="service" value="<%$service%>" class="textbg"></td>
      </tr>
      <tr class="tbl_light">
        <td valign="top">Description
         <div class="explanation">The description of your service.</div>
        </td>
        <td><textarea name="description" cols="40" rows="7"><%$description%></textarea></td>
      </tr>
      <tr class="tbl_light2">
        <td valign="top">Total
        <div class="explanation">The total amount of money will you charge.
          Please do not include the currency symbol here.</div>
        </td>
        <td><input type="text" size="40" name="total" value="<%$total%>" class="textbg"></td>
      </tr>
      <tr class="tbl_light">
        <td valign="top">Comment
          <div class="explanation">This an optional field. You can add friendly comment here.</div>
        </td>
        <td><textarea name="comment" cols="40" rows="7"><%$comment%></textarea></td>
      </tr>
      <tr>
        <td class="tbl_light2" colspan="2" align="center">
          <input type="submit" value="Edit Invoice" class="button">
          <input type="reset" value="Reset" class="button">
        </td>
      </tr>
    </table>
  </td>
</tr>
</table>
</form>