VDaemon PHP Library | VDaemon Extension | Table of Contents
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 tag:
- The runat attribute must be set to "vdaemon" (runat="vdaemon"). This means that the form will be processed by VDaemon.
- The name attribute must be specified (e.g. name="QContact").
- The method attribute must be set to "post".
You should edit the form tag on your page to fulfill the requirements listed above. A VDaemon form tag is shown in the code below.
<?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" runat="vdaemon" action="process.php"> <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 4