REQUIRED FIELD CODE:
 

I) If certain fields in a form are necessary by the owner of the website, a warning box will appear, which notifies the person, who enters the data:

            a) <HEAD>
             <TITLE>Required</TITLE>
                <SCRIPT>
                <!--
                function validate()
                {
                if (document.form.name.value == "")
                    {
                        alert ('Please enter required fields!')
                        return false;
                    }
               else
                   {
                        alert ('Thank you very much!');
                        return true;
                    }
                 }
               //-->
              </SCRIPT>
            </HEAD>
            <BODY>
               <FORM NAME="form" ACTION="mailto:youremail?subject="form"
               METHOD="post"  ENCTYPE="text/plain" onSubmit="return validate()">
               <CENTER>
               <BR>
               Name:
               <BR>
              <INPUT TYPE="text" NAME="name" SIZE="30" MAXLENGTH="40">
           * <INPUT TYPE="Submit" Value="Submit Name">
              <INPUT TYPE="Reset" Value="Clear"></CENTER>
              </FORM>
             </BODY>
             </HTML>

        b)

Name:

*

II) Any form fiield can be adapted, and expanded with the above method.
 
 

COPYRIGHT 2002   ALL RIGHTS RESERVED BY J.A.M.
HTML CODES ON THE INTERNET
SAINT LOUIS, MISSOURI