VDaemon PHP Library | VDaemon Extension | Table of Contents

VDaemon Tutorial
Step 2 - Include VDaemon Library

You need to include the vdaemon.php into your page (see code below). This statement must be the very beginning of your page. No other code should appear before that code.

<?php include('vdaemon/vdaemon.php'); ?>
<html>
<head>
<title>VDaemon Validation Sample</title>
<style type="text/css">
<!--
.default
{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold
}
.defaultErr
{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #FF0000
}
-->
</style>
</head>
<body>
<p class="default">Quick contact form.</p>
<form method="POST" name="QContact">
  <table cellpadding="0" cellspacing="0" border="0">
    <tr>
      <td width="100">
        Your Name:
      </td>
      <td width="200">
        <input name="Name" type="text" size="25">
      </td>
    </tr>
    <tr>
      <td width="100">
        Your E-mail:
      </td>
      <td width="200">
        <input type="text" name="Email" size="25">
      </td>
    </tr>
    <tr>
      <td colspan="2">
        Your Message/Question:
      </td>
    </tr>
    <tr>
      <td colspan="2">
        <textarea name="Message" cols="40" rows="7" wrap="virtual"></textarea>
      </td>
    </tr>
    <tr>
      <td colspan="2">
        <input type="submit" value="Send">
      </td>
    </tr>
  </table>
</form>
</body>
</html>

Continue to Step 3