Help with hotel booking system
Posted: Thu Jan 27, 2011 4:31 pm
Hi
I have a form on my left column that allows website visitors to choose the date and how many nights they would like to stay at a hotel.
The 4 variables are:
$day, $month, $year, $nights
These pass through to a php page called iframe.php where the chosen date is shown to the person booking along with an iframe provided by a hotel booking agent type company that shows a calendar or a message as to whether a room is available and then a simple checkout system.
Everything works fine apart from I don't know how I can submit my data to the iframe.php file and display the iframe within my website so that it looks as if the 3rd party system is integrated within the website.
Here is the code from iframe.php
Example: http://www.richardjordan.biz
Thanks
I have a form on my left column that allows website visitors to choose the date and how many nights they would like to stay at a hotel.
The 4 variables are:
$day, $month, $year, $nights
These pass through to a php page called iframe.php where the chosen date is shown to the person booking along with an iframe provided by a hotel booking agent type company that shows a calendar or a message as to whether a room is available and then a simple checkout system.
Everything works fine apart from I don't know how I can submit my data to the iframe.php file and display the iframe within my website so that it looks as if the 3rd party system is integrated within the website.
Here is the code from iframe.php
Code: Select all
<form method="post" name="qb" id="qb" target="bookingframe" action="https://secure.dbsoft-booking.co.uk/ava1.asp">
<input type="hidden" name="day" value="<?php echo "$day";?>">
<input type="hidden" name="month" value="<?php echo "$month";?>">
<input type="hidden" name="year" value="<?php echo "$year";?>">
<input type="hidden" name="nights" value="<?php echo "$nights";?>">
<input type="hidden" name="siteid" value="87">
<input type="hidden" name="key" value=" princehall">
<input type="hidden" name="next" value="on" />
<input type="hidden" name="specialdatesid" />
<input type="hidden" name="split" value="off">
<input type="hidden" name="sourceinterface" value="standard">
<input type="hidden" name="widen" value="off">
</form>
<__iframe id="bookingframe" name="bookingframe" src="" width="690" height="850"></__iframe>
<__script__ type="text/javascript">
document.qb.submit();
</__script>
Thanks