Help with hotel booking system

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Locked
handcoded
Forum Members
Forum Members
Posts: 123
Joined: Thu Dec 06, 2007 2:26 pm

Help with hotel booking system

Post by handcoded »

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

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>
Example: http://www.richardjordan.biz

Thanks
Locked

Return to “The Lounge”