View Single Post
  #3 (permalink)  
Old 18-08-2008, 20:28
seanweb seanweb is offline
new member
 
Join Date: Aug 2008
Posts: 2
Default

Hi all, I'm having the exact same problem with my booking form, I have the booking_form.php file uploaded on my web-server and Ive got the form code embedded in my webpage, the form displays on the page, but when I hit the submit button, instead of performing the validation it comes up with the old 405 METHOD NOT ALLOWED error - The requested method POST is not allowed for the URL /booking_form.php !! I've tried everything but still no luck.


Below is my webpage code:

HTML Code:
<p>
   <link rel='STYLESHEET' type='text/css' href='/html/booking_form.php?sfm_get_ref_file=booking_formstyle.css'>
   <script language='JavaScript' src='/html/booking_form.php?sfm_get_ref_file=genvalidator.js'>
   </script>
   <form name='booking_form' method='POST' action='/html/booking_form.php' accept-charset='UTF-8'>
      <input type='hidden' name='sfm_form_submitted' value='yes'>
      </input>
      <table cellspacing='0' cellpadding='10' border='0' bordercolor='#000000'>
         <tr>
            <td>
               <table cellspacing='2' cellpadding='2' border='0'>
                  <tr>
                     <td colspan='2' align='center' class='form_heading'>
Make a Reservation for your animal(s)
                     </td>
                  </tr>
                  <tr>
                     <td align='right' class='required_field'>
Email*
                     </td>
                     <td class='element_label'>
                        <div id='booking_form_Email_errorloc' class='error_strings'>
                        </div>
                        <input type='text' name='Email' size='20'>
                     </td>
                  </tr>
                  <tr>
                     <td align='right' class='normal_field'>
ContactTel
                     </td>
                     <td class='element_label'>
                        <input type='text' name='ContactTel' size='20'>
                     </td>
                  </tr>
                  <tr>
                     <td colspan='2'>
                        <hr>
                        </hr>
                     </td>
                     <tr>
                        <td colspan='2' class='form_subheading'>
Pet Details
                        </td>
                     </tr>
                     <tr>
                        <td align='right' class='required_field'>
No of Pets*
                        </td>
                        <td class='element_label'>
                           <div id='booking_form_no_of_pets_errorloc' class='error_strings'>
                           </div>
                           <input type='text' name='no_of_pets' size='5'>
                        </td>
                     </tr>
                     <tr>
                        <td align='right' valign='top' class='required_field'>
If more than one animal, are they to share or be seperated?*
                        </td>
                        <td class='element_label'>
                           <div id='booking_form_share_seperate_errorloc' class='error_strings'>
                           </div>
                           <input type='radio' name='share_seperate' value='Share'>
Share                           <br>
                           <input type='radio' name='share_seperate' value='Seperate'>
Seperate                           <br>
                           <input type='radio' name='share_seperate' value='N/A'>
Not Applicable (n/a)                           <br>
                        </td>
                     </tr>
                     <tr>
                        <td colspan='2' align='left' valign='bottom' class='normal_field'>
Pet Details (breed,sex,age,conditions etc.)
                        </td>
                     </tr>
                     <tr>
                        <td>
                        </td>
                        <td class='element_label'>
                           <div id='booking_form_PetDetails_errorloc' class='error_strings'>
                           </div>
<textarea name='PetDetails' cols='50' rows='10'></textarea>
                        </td>
                     </tr>
                     <tr>
                        <td align='right' valign='top' class='required_field'>
Where do you want your pet housed?*
                        </td>
                        <td class='element_label'>
                           <div id='booking_form_indoors_outdoors_errorloc' class='error_strings'>
                           </div>
                           <input type='radio' name='indoors_outdoors' value='Indoors (cage)'>
Indoors (cage)                           <br>
                           <input type='radio' name='indoors_outdoors' value='Outdoors (hutch / cage)'>
Outdoors (hutch / cage)                           <br>
                           <input type='radio' name='indoors_outdoors' value='No preference'>
No preference                           <br>
                        </td>
                     </tr>
                     <tr>
                        <td align='right' valign='top' class='normal_field'>
Specify Feeding \ Grooming Requirements
                        </td>
                        <td class='element_label'>
<textarea name='FeedingRequirements' cols='25' rows='5'></textarea>
                        </td>
                     </tr>
                     </tr>
                     <tr>
                        <td align='right' class='required_field'>
                        <td align='right' class='normal_field'>
How did you hear about us?
                        </td>
                        <td class='element_label'>
                           <input type='text' name='hear_about' size='20'>
                        </td>
                     </tr>
                     <tr>
                        <td>
                        </td>
                        <td class='element_label'>
                           <div id='booking_form_i_agree_errorloc' class='error_strings'>
                           </div>
                           <input type='checkbox' name='i_agree' value='agree'>
I Agree to the Terms and Conditions Listed On This Site
                        </td>
                     </tr>
                     <tr>
                        <td colspan='2' align='center'>
                           <div id='booking_form_Submit_errorloc' class='error_strings'>
                           </div>
                           <input type='submit' name='Submit' value='Submit'>
                        </td>
                     </tr>
                  </tr>
               </table>
            </td>
         </tr>
      </table>

<script language='JavaScript'>var booking_formValidator = new Validator("booking_form");

booking_formValidator.EnableOnPageErrorDisplay();
booking_formValidator.EnableMsgsTogether();
booking_formValidator.validate_on_killfocus = true;
booking_formValidator.addValidation("Name","req","Please fill in Name");
booking_formValidator.addValidation("Address","req","Please fill in Name");
booking_formValidator.addValidation("Email","email","The input for Email should be a valid email value");
booking_formValidator.addValidation("Email","req","Please fill in Email");
booking_formValidator.addValidation("no_of_pets","req","Please fill in Name");
booking_formValidator.addValidation("share_seperate","selone","Please select yes or no");
booking_formValidator.addValidation("PetDetails","maxlen=10240","The length of the input for Message should not exceed 500");
booking_formValidator.addValidation("indoors_outdoors","selone","Please select yes or no");
booking_formValidator.addValidation("VetRegistered","req","Please fill in Name");
booking_formValidator.addValidation("ArrivalDate","regexp=^(\\d){1,2}/(\\d){1,2}/(\\d){2,4}$","Please enter a valid input for Date");
booking_formValidator.addValidation("ArrivalDate","req","Please provide the rquested date of appointment");
booking_formValidator.addValidation("arrival_time","selone","Please select income range");
booking_formValidator.addValidation("DepartureDate","regexp=^(\\d){1,2}/(\\d){1,2}/(\\d){2,4}$","Please enter a valid input for Date");
booking_formValidator.addValidation("DepartureDate","req","Please provide the rquested date of appointment");
booking_formValidator.addValidation("departure_time","selone","Please select income range");
booking_formValidator.addValidation("i_agree","selmin=1","Can't proceed as you do not agree to the terms & conditions");
</script>
   </form>
</p>
Reply With Quote