Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New Coder
    Join Date
    Sep 2003
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Registered Fields For Form

    Hi all, here is what I would like to have happen. With the current code only the email is a registered field when submitting the button. If I go to the page with this code and enter nothing, I get a prompt that states that I need an email address before submitting (registered) I want all the other items to be registered also. However I can't seem to get the code right for the validate part of the script. Any help would be great! In a nut shell I want all fields to be a registered field so the user cannot send the form unless they fill out every field.

    Code:
    <td valign="top"><form action="/mailform.do" method="post">
                  <input type="hidden" name="mailto" value="">
                  <input type="hidden" name="subject" value="Request for Other Publicity Form">
                  <input type="hidden" name="dept" value="confirm.gif">
                  <input type="hidden" name="name" value="F04_Full_Name">
                  <table width="493" border=0 align="center" cellpadding=3 cellspacing=3 bgcolor="#FFFFFF">
                    <tr>
                      <td colspan="2"><h3 align="center"><span class="style4">FILL OUT ENTIRE FORM. &nbsp;INCOMPLETE FORMS WILL NOT BE PROCESSED.</span></h3>
                          <h3 align="center"><span class="style3">Award/Agent Standing Press Release Form</span></h3></td>
                    </tr>
                    <tr>
                      <td colspan="2" align="center"><span class="style4"><FONT face="Verdana, Arial, Helvetica, sans-serif" size="-1">Region: </FONT></span><FONT face="Verdana, Arial, Helvetica, sans-serif" size="-1">
                        <input name="F01_Region" type="radio" value="Region1">
                        Region 1
                        <input name="F01_Region" type="radio" value="Region2">
                        Region 2
                        <input name="F01_Region" type="radio" value="Region3">
                        Region 3
                        <input name="F01_Region" type="radio" value="Region4">
                        Region 4</FONT></td>
                    </tr>
                    <tr>
                      <td colspan="2" align="right"><p align="center"><span class="style4"><FONT face="Verdana, Arial, Helvetica, sans-serif" size="-1">Title:</FONT></span> <FONT face="Verdana, Arial, Helvetica, sans-serif" size="-1">
                          <input name="F02_Title" type="radio" value="associate">
                          Sales Associate</FONT> <FONT face="Verdana, Arial, Helvetica, sans-serif" size="-1">
                          <input name="F02_Title" type="radio" value="broker">
                          Broker Sales Associate </FONT> <FONT face="Verdana, Arial, Helvetica, sans-serif" size="-1"><br>
                          <input name="F02_Title" type="radio" value="other">
                          Other
                          <input name="F03_Title_Other" type="text" id="title_other" size="25" maxlength="40">
                      </FONT></td>
                    </tr>
                    <tr>
                      <td height="18" colspan="2"><div align="left"><span class="style4"><FONT face="Verdana, Arial, Helvetica, sans-serif" size="-1">Do you have a Photo on Cbmoves: </FONT></span> <FONT face="Verdana, Arial, Helvetica, sans-serif" size="-1">
                        <input name="F04_Photo_On_Cbmoves" type="radio" value="yes">
                        Yes</FONT> <FONT face="Verdana, Arial, Helvetica, sans-serif" size="-1">
      <input name="F04_Photo_On_Cbmoves" type="radio" value="no">
                          No</FONT></div></td>
                    </tr>
                    <tr>
                      <td width="41%" align="right"><div align="left"><span class="style4"><FONT face="Verdana, Arial, Helvetica, sans-serif" size="-1">Associates Full Name: </FONT></span>
                              <input type="text" name="F05_Associates_Full_Name" value="" size=25 maxlength=40>
                      </div></td>
                      <td width="59%" align="right"><div align="left"><FONT face="Verdana, Arial, Helvetica, sans-serif" size="-1"><span class="style4">Sales Office Name: </span>
                                <input name="F06_Sales_Office_Name" type="text" id="F06_Sales_Office_Name" size="25" maxlength="40">
                      </FONT></div></td>
                    </tr>
                    <tr>
                      <td align="right"><div align="left"><span class="style4"><FONT face="Verdana, Arial, Helvetica, sans-serif" size="-1">Office Phone:<br> </FONT></span>
                              <input name="F07_Office_Phone" type="text" id="F07_Office_Phone" size="25" maxlength="65">
                      </div></td>
                      <td align="right"><div align="left"><span class="style4"><FONT face="Verdana, Arial, Helvetica, sans-serif" size="-1">Cell Phone:<br>
                          </FONT></span>
                              <input name="F08_Agent_Cell" type="text" id="Office_Phone" size="25" maxlength="65">
                              <p></p>
                      </div></td>
                    </tr>
                    <tr>
                      <td colspan="2" align="right"><div align="left">
                        <p><FONT face="Verdana, Arial, Helvetica, sans-serif" size="-1"><span class="style4">Email:</span>(ex:<span class="style5">jane.doe@cbmoves.com</span>) </FONT>
                          <input name="email" type="text" id="email" size="25" maxlength="80">
                          <FONT face="Verdana, Arial, Helvetica, sans-serif" size="-1"> </FONT></p>
                        <p align="center"><font face="Verdana,Arial,Helvetica" size="-1"><span class="style4">Please describe your request in detail : </span><br>
                            <textarea name="F09_Describe_request_in_detail" cols="45" id="textarea"></textarea>
                        </font></p>
                      </div></td>
                    </tr>
                    <tr>
                      <td align="right"><div align="left"><font face="Verdana,Arial,Helvetica" size="-1"><span class="style4">Agent's Other Accomplishments:</span><br>
                          </font>
                              <textarea name="F10_Accomplishments" cols="25" id="memberships"></textarea>
                      </div></td>
                      <td align="right"><div align="left"><font face="Verdana,Arial,Helvetica" size="-1"><span class="style4">Photo Caption:</span><br>
                                <textarea name="F11_Photo_Caption" cols="25" id="community_involvement"></textarea>
                      </font></div></td>
                    </tr>
                    <tr>
                      <td colspan="2" align="right"><div align="center"><font face="Verdana,Arial,Helvetica" size="-1"> </font> <font face="Verdana,Arial,Helvetica" size="-1"><span class="style4">Manager Comment: </span><br>
                                <textarea name="F12_Manager_Comment" cols="45" id="manager"></textarea>
                      </font></div></td>
                    </tr>
                    <tr>
                      <td colspan="2" align="right">
                        <div align="center"><font face="Verdana,Arial,Helvetica" size="-1"><span class="style4">Additional Comments: </span><br>
                            <textarea name="F13_Additional_Comments" cols="45" id="textarea2"></textarea>
                        </font></div></td>
                    </tr>
                    <tr>
                      <td colspan=2 align=center><input type="submit" name="submit" value="Send Now" onClick="MM_validateForm('email','','RisEmail');return document.MM_returnValue">            &nbsp;
                        <input type="reset" name="reset" value="Reset this form"></td>
                    </tr>
                  </table>
                </form>
    Last edited by Rubicks13; 02-06-2007 at 08:03 PM.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •