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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Form Help Please

    Forms are not my strongest suite. I am getting an error that I don't know how to fix.

    Here is the error
    The requested method POST is not allowed for the URL /register.htm.

    and the form code
    Code:
    <form name="individual_registration" action="" method="post">
                              <table style="width: 500px; margin: 0px auto; text-align: left;">
                                <tr>
                                  <td colspan="2"><h2>PLAYER INFORMATION</h2></td>
                                </tr>
                                <tr>
                                  <td style="width: 200px; text-align: right;"><strong>First Name</strong>:</td>
                                  <td align="left"><input type="text" id="first_name" name="first_name" /></td>
                                </tr>
                                <tr>
                                  <td style="width: 200px; text-align: right;"><strong>Last Name</strong>:</td>
                                  <td align="left"><input type="text" id="last_name" name="last_name" /></td>
                                </tr>
                                <tr>
                                  <td style="width: 200px; text-align: right;"><strong>City</strong>:</td>
                                  <td align="left"><input type="text" id="city" name="city" /></td>
                                </tr>
                                <tr>
                                  <td style="width: 200px; text-align: right;"><strong>Zip Code</strong>:</td>
                                  <td align="left"><input type="text" id="zip" name="zip" /></td>
                                </tr>
                                <tr>
                                  <td style="width: 200px; text-align: right;"><strong>Email</strong>:</td>
                                  <td align="left"><input type="text" id="email" name="email" maxlength="50" /></td>
                                </tr>
                                <tr>
                                  <td style="width: 200px; text-align: right;"><strong>Home Phone</strong>:</td>
                                  <td align="left"><input type="text" id="home_phone" name="home_phone" maxlength="50" /></td>
                                </tr>
                                <tr>
                                  <td style="width: 200px; text-align: right;"><strong>Birth Date</strong>:</td>
                                  <td align="left"><script>DateInput('birthdate', true, 'YYYY-MM-DD')</script></td>
                                </tr>
                                <tr>
                                  <td style="width: 200px; text-align: right;"><strong>Gender</strong>:</td>
                                  <td align="left"><select id="gender" name="gender">
                                      <option value="" selected>Choose
                                      <option value="F">F
                                      <option value="M">M
                                    </select></td>
                                </tr>
                                <tr>
                                  <td style="width: 200px; text-align: right;"><strong>Grade</strong>:</td>
                                  <td align="left"><select id="grade" name="grade">
                                      <option value="" selected>Choose
                                      <option value="2">2
                                      <option value="3">3
                                      <option value="4">4
                                      <option value="5">5
                                      <option value="6">6
                                      <option value="7">7
                                      <option value="8">8
                                    </select></td>
                                </tr>
                                <tr>
                                  <td style="width: 200px; text-align: right;"><strong>School</strong>:</td>
                                  <td align="left"><input type="text" id="school" name="school" /></td>
                                </tr>
                                <tr>
                                  <td>&nbsp;</td>
                                </tr>
                                <tr>
                                  <td colspan="2"><h2>PARENT / GUARDIAN</h2></td>
                                </tr>
                                <tr>
                                  <td style="width: 200px; text-align: right;"><strong>First Name</strong>:</td>
                                  <td align="left"><input type="text" id="guardian_first_name" name="guardian_first_name" /></td>
                                </tr>
                                <tr>
                                  <td style="width: 200px; text-align: right;"><strong>Last Name</strong>:</td>
                                  <td align="left"><input type="text" id="guardian_last_name" name="guardian_last_name" /></td>
                                </tr>
                                <tr>
                                  <td style="width: 200px; text-align: right;"><strong>Email</strong>:</td>
                                  <td align="left"><input type="text" id="guardian_email" name="guardian_email" maxlength="50" /></td>
                                </tr>
                                <tr>
                                  <td style="width: 200px; text-align: right;"><strong>Home Phone</strong>:</td>
                                  <td align="left"><input type="text" id="guardian_home_phone" name="guardian_home_phone" maxlength="50" /></td>
                                </tr>
                                <tr>
                                  <td style="width: 200px; text-align: right;"><strong>Work Phone</strong>:</td>
                                  <td align="left"><input type="text" id="guardian_work_phone" name="guardian_work_phone" maxlength="50" /></td>
                                </tr>
                                <tr>
                                  <td style="width: 200px; text-align: right;"><strong>Cell Phone</strong>:</td>
                                  <td align="left"><input type="text" id="guardian_cell_phone" name="guardian_cell_phone" maxlength="50" /></td>
                                </tr>
                                <tr>
                                  <td>&nbsp;</td>
                                </tr>
                                <tr>
                                  <td colspan="2"><h2>MEDICAL / EMERGENCY CONTACT INFORMATION</h2></td>
                                </tr>
                                <tr>
                                  <td style="width: 200px; text-align: right;"><strong>Emergency Contact</strong>:</td>
                                  <td align="left"><input type="text" id="emergency_contact_name" name="emergency_contact_name" /></td>
                                </tr>
                                <tr>
                                  <td style="width: 200px; text-align: right;"><strong>Phone</strong>:</td>
                                  <td align="left"><input type="text" id="emergency_contact_phone" name="emergency_contact_phone" /></td>
                                </tr>
                                <tr>
                                  <td style="width: 200px; text-align: right;"><strong>Relationship to Runner</strong>:</td>
                                  <td align="left"><input type="text" id="emergency_contact_relationship" name="emergency_contact_relationship" /></td>
                                </tr>
                                <tr>
                                  <td>&nbsp;</td>
                                </tr>
                                <tr>
                                  <td colspan="2"><h2>EVENT INFORMATION</h2></td>
                                </tr>
                                <tr>
                                  <td style="width: 200px; text-align: right;"><strong>T-Shirt Size</strong>:</td>
                                  <td align="left"> Adult
                                    <select id="t_shirt_size" name="t_shirt_size">
                                      <option value="" selected>Choose
                                      <option value="S">SMALL
                                      <option value="M">MEDIUM
                                      <option value="L">LARGE
                                      <option value="XL">X-LARGE
                                    </select></td>
                                </tr>
                                <tr>
                                  <td style="width: 200px; text-align: right;"><strong>Select your event</strong>:</td>
                                  <td align="left"><select id="event_id" name="event_id">
                                      <option value="" selected>Choose
                                      <option value="1">6th grade and under Girls Race
                                      <option value="2">6th grade and under Boys  Race
                                      <option value="3">7th grade Girls Silver Division Race
                                      <option value="4">7th grade Boys  Silver Division Race
                                      <option value="5">7th grade Girls Gold Division Race
                                      <option value="6">7th grade Boys Gold Division Race
                                      <option value="7">8th grade Girls Silver Division Race
                                      <option value="8">8th grade Boys Silver Division Race
                                      <option value="9">8th grade Girls Gold Division Race
                                      <option value="10">8th grade Boys Gold Division Race
                                    </select></td>
                                </tr>
                                <tr>
                                  <td>&nbsp;</td>
                                </tr>
                                <tr>
                                  <td colspan="2"><h2>WAIVER INFORMATION</h2></td>
                                </tr>
                                <tr>
                                  <td colspan="2"><p style="text-align: left"> <strong>Middle School Athletic Association</strong> <br>
                                      <strong>Middle School State Cross Country</strong>
                                    <p> In consideration of being permitted to participate in any way with the Middle School State Cross Country Championship the undersigned: </p>
                                    <ol>
                                      <li>Agrees and represents that I understand the nature of track and field and that I am qualified, in good health, and proper physical condition to participate. I also agree that if at any time I believe conditions to be unsafe, I will discontinue further participation in the district and state meet. </li>
                                      <li>Fully understand that athletic activities involve risks of serious injury, permanent disability, paralysis, and death and social losses which might result not only from their actions or negligence, but the actions or negligence of others, the rules of play, or the condition of the tournament site or any of the equipment used. There may be other risks not known or foreseeable at this time. </li>
                                      <li>Agree that the parents or a legal guardian will inspect the facilities and equipment to insure proper safety for the minor participants. If anything is believed to be unsafe, a coach/parent or official, should be notified immediately of such conditions and the participant will refuse to participate. </li>
                                      <li>Each participant is to be properly insured and/or pay all medical costs in the event of an injury and in the case of emergency must provide a contact person for each minor participant. Furthermore assume all risks and accept personal responsibility for damages on account of injury, death or damage to property, caused or alleged to be caused in whole or in part by the negligence of the release. </li>
                                      <li>Release, waive, and agree not to sue Middle School Athletic Association, Championship Sports Inc. and Ohio Cross Country, meet directors, staff or volunteers of the organizations, if applicable, owners and leasers of the tournament sites, which are all released from demands, losses or damages on account of injury, death or damage to property, caused or alleged to be caused in whole or in part by the negligence of the release. </li>
                                      <li>If injury or illness occurs while competing in the middle school cross country championship and tournament event, I authorize emergency first aid, medical treatment, medication or surgery necessary by medical personnel. </li>
                                      <li>I give my permission for the participants listed below to be used in any middle school cross country championship, regional meets and Championship Sports, Inc. promotions. This includes pictures, interviews, television, radio or film coverage during any of the regional and state competition, events without compensation to me. </li>
                                      <li>This waiver / agreement shall be binding upon the heirs, executors, and assigns of all the undersigned. </li>
                                      <li>I have read and fully understand all forms, rules, procedures and policy dealing the Ohio Middle Cross Country Championships. </li>
                                    </ol>
                                    <strong>I understand and have read the above</strong>:&nbsp;&nbsp;
                                    <input type="checkbox" id="confirm" name="confirm" value="Y">
                                    Yes
                                    </p></td>
                                </tr>
                                <tr>
                                  <td>&nbsp;</td>
                                </tr>
                                <tr>
                                  <td colspan="2" align="center"><input type="submit" value="Continue" id="submit" name="submit" onClick="return validate(this.form.name)"></td>
                                </tr>
                              </table>
                            </form>
    Any help remedying this is greatly appreciated.

  • #2
    Regular Coder
    Join Date
    Jul 2003
    Posts
    117
    Thanks
    0
    Thanked 17 Times in 17 Posts
    A form needs a server side script ('back end') to process the submission. The action attribute should point to such a a script.

    For more information and examples see the links below

    How to make a web form

    How to get email from html form submission

    PHP Contact form tutorial


  •  

    Posting Permissions

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