Landing Page

From Beds24 Wiki
Revision as of 17:01, 13 September 2014 by Annette (talk | contribs)
Jump to navigation Jump to search


Required skills: php, html, css

If you have entered a Booking Return Url the guest will be redirected to your site after they book. We will include information about the booking as parameters added to your Url

Using PHP or other scripting languages it is possible to process the parameters and display personalised information to the guest. The following PHP test script will display the raw data.

Use this as a starting point to create your own design:

<?php

echo "
bookid=".$_GET["bookid"];

echo "
propid=".$_GET["propid"]; echo "
roomid=".$_GET["roomid"]; echo "
roomname=".urldecode($_GET["roomname"]); echo "
propname=".urldecode($_GET["propname"]); echo "
firstnight=".urldecode($_GET["firstnight"]); echo "
lastnight=".urldecode($_GET["lastnight"]); echo "
checkout=".urldecode($_GET["checkout"]); echo "
numnight=".urldecode($_GET["numnight"]); echo "
numadult=".urldecode($_GET["numadult"]); echo "
numchild=".urldecode($_GET["numchild"]); echo "
lang=".urldecode($_GET["lang"]); echo "
price=".urldecode($_GET["price"]); echo "
confirmtype=".urldecode($_GET["confirmtype"]); echo "
qty=".urldecode($_GET["qty"]); echo "
pricenum=".urldecode($_GET["pricenum"]); echo "
referer=".urldecode($_GET["referer"]); echo "
guestname=".urldecode($_GET["guestname"]); echo "
guestfirstname=".urldecode($_GET["guestfirstname"]); echo "
guestemail=".urldecode($_GET["guestemail"]); echo "
guestphone=".urldecode($_GET["guestphone"]); echo "
guestmobile=".urldecode($_GET["guestmobile"]); echo "
guestaddress=".urldecode($_GET["guestaddress"]); echo "
guestarrivaltime=".urldecode($_GET["guestarrivaltime"]); echo "
guestcomments=".urldecode($_GET["guestcomments"]); echo "
ratedesc=".urldecode($_GET["ratedesc"]); ?>