• Simple HTML form on the page

    
    <form id="availability" action="http://db.barnesbrinkcraft.co.uk/barnes1/booking/houseClassAvailability" method="post" name="availabilty">
    <input name="LMNB" value="true" type="hidden"><p></p>
    <div class="form">Nights:</div>
    <div class="form"><select id="id_nights" name="nights"><option value="7">Full Week</option><option value="4">Short Break</option></select></div>
    <div class="form">Date from:</div>
    <div class="form"><input id="start_date" name="start_date" value="" class="hasDatepicker" type="text"></div>
    <div class="form">
    

    results in

    
    https://secure.barnesbrinkcraft.co.uk/barnes1/booking/houseClassAvailability?LMNB=true&nights=7&start_date=12%2F02%2F2018&submit=Check+Availability?LMNB=true&nights=7&start_date=12%2F02%2F2018&submit=Check+Availability
    

    Why are the POST fields being parsed twice????

    
    <p><input name="submit" value="Check Availability" type="submit"></p>
    </div>
    </form>
    
    • This topic was modified 6 years, 2 months ago by Jan Dembowski. Reason: Fixing broken formatting and moving to Fixing WordPress

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter MikeKJ

    (@mikekj)

    the class .hasDatepicker calls jQuery

    
    <script language="javascript" type="text/javascript">
                    jQuery(document).ready(function($){
                $('input[name="start_date"]').datepicker({dayNamesMin: ['S', 'M', 'T', 'W', 'T', 'F', 'S'], dateFormat: "dd/mm/yy", changeMonth: true, changeYear: true, minDate:"0", maxDate:"", closeText: "", currentText: ""});                                       
                    });
            </script>
    
    • This reply was modified 6 years, 2 months ago by Jan Dembowski.
Viewing 1 replies (of 1 total)
  • The topic ‘weird html form submission result’ is closed to new replies.