VDaemon PHP Library | VDaemon Extension | Table of Contents

VDaemon Tutorial
Setting Up Form Tag

To mark our form as "VDaemon form" we need to setup <form> tag properly. The VDaemon <form> tag is different from the HTML <form> tag because it has some additional attributes. The following attributes must be specified for each VDaemon form:

- The runat attribute must be set to "vdaemon" (runat="vdaemon"). This marks form as "VDaemon form".
- The id or name attribute must be specified (e.g. id="Hello"). It is recomended to use "id" attribute. It must have unique value.
- The method attribute must be set to "post".

We should edit the <form> tag on our form page to fulfill the requirements listed above. After this the name.php must look like:

<?php include('vdaemon/vdaemon.php'); ?>
<html>
<head>
<title>Hello!</title>
</head>
<body>
<p>Hello form.</p>
<form method="POST" action="hello.php" id="Hello" runat="vdaemon">
  <table cellpadding="2" cellspacing="0" border="0">
    <tr>
      <td>
        Enter your Name:
      </td>
      <td>
        <input name="Name" type="text" size="25">
      </td>
    <tr>
      <td colspan="2">
        <input type="submit" value="Send">
      </td>
    </tr>
  </table>
</form>
</body>
</html>
<?php VDEnd(); ?>

Continue to Defining Validation Rules