Make Your Own Booking Widget: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 25: Line 25:


It is very simple and will show a "Book Now" button and open the property with the specified propid.
It is very simple and will show a "Book Now" button and open the property with the specified propid.
You could alternatively use ownerid to show all properties in an account or roomid to show only one room.




Line 35: Line 37:
It is possible using jQuery or javascript to keep the select options up-to-date with the current month/year but that is beyond the scope of this How To.
It is possible using jQuery or javascript to keep the select options up-to-date with the current month/year but that is beyond the scope of this How To.


  <FORM METHOD="POST" ACTION="http://www.beds24.com/booking2.php">
  <FORM METHOD="POST" ACTION="https://www.beds24.com/booking2.php">
  <select name='fdate_date'>
  <select name='fdate_date'>
  <option value='1'>1</option>
  <option value='1'>1</option>
Line 104: Line 106:
We can add selectors for the length of stay and number of guests as follows
We can add selectors for the length of stay and number of guests as follows


  <FORM METHOD="POST" ACTION="http://www.beds24.com/booking2.php">
  <FORM METHOD="POST" ACTION="https://www.beds24.com/booking2.php">
  <select name='fdate_date'>
  <select name='fdate_date'>
  <option value='1'>1</option>
  <option value='1'>1</option>