Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of m  >  Math Guard  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Main sample Form that has to be protected
Class: Math Guard
CAPTCHA validation using math expressions
Author: By
Last change:
Date: 7 years ago
Size: 930 bytes
 

Contents

Class file image Download
<!-- notice the form submit action to formhandler.php -->
<form action='formhandler.php' method='post'>
<h1>MathGuard antispam class form example</h1>
    <b>Title:</b> <i>(For example: The best coding site ever..)</i><br/>
    <input type='text' name='title' size='30'/><br/><br/>

    <b>Description:</b><br/>
    <textarea name='description' rows='5' cols='50'></textarea><br/><br/>

    <b>Keywords:</b> <i>(Space, or comma separated keywords)</i><br/>
    <input type='text' name='keywords' value='' size='30'/><br/><br/>

    <b>URL:</b><br/>
    <input type='text' name='url' value='http://' size='30'/><br/><br/>

    <b>Email:</b><br/>
    <input type='text' name='email' value='@' size='30'/><br/><br/>

    <? require("ClassMathGuard.php"); MathGuard::insertQuestion(); ?> 
    <br/><br/>
    
    <input type='hidden' name='action' value='submit'/><br/>
    <input type='submit' name='Submit' value='Add URL' class='mybutton'/><br/>
</form>