<?php /*

Plugin Name: Example Login Form Plugin
Description: A plugin that shows off some of the new features of the login form.
Author: Viper007Bond
Author URI: http://www.viper007bond.com/

*/

add_action('register_form''vipers_exloginform_form');
add_action('register_post''vipers_exloginform_post');

function 
vipers_exloginform_form() {
    echo 
'    <p><label>What is your favorite color?<br /><input type="text" name="color" id="color" size="25" class="input" value="' wp_specialchars(stripslashes($_POST['color']), 1) . '" /></label></p>' "\n";
}

function 
vipers_exloginform_post() {
    global 
$errors;

    if ( empty( 
$_POST['color'] ) ) $errors['color'] = 'ERROR: You need to fill in the color field!';
    else {
        
// Do something with the color here, like save it to the database
    
}
}

?>