CAn Some one please help when this scrip runs it does not enter the data
from my forms, it just says[object] where each feild should be. I have
tested it using google address and it appears to work just fine. But i
cma't get it to work with the below link.
Thanks james
<script>
function doURL() {
ncheckInDate=do cument.getEleme ntById("checkIn Date").value
ncheckInMonth=d ocument.getElem entById("month" ).value
ncheckInYear=do cument.getEleme ntById("year"). value
nnumberOfNights =document.getEl ementById("nigh ts").value
nnumberOfAdults =document.getEl ementById("adul ts").value
nnumberOfRooms= document.getEle mentById("rooms ").value
t="http://www.ichotelsgro up.com/redirect?checkI nDatebrandCode= 6c&path=asearc
h&city=London&c ountryId=0925&r ateTypeCodes=6C BARC&checkInDat e="+checkInDate +
"&checkInMonth= "+month+"&check InYear="+year+" &numberOfNights ="+nights+"&num b
erOfAdults="+ad ults+"&numberOf Rooms="+rooms+" &hotelCode=LONL H"
alert(t)
location.href=t
}
</script>
from my forms, it just says[object] where each feild should be. I have
tested it using google address and it appears to work just fine. But i
cma't get it to work with the below link.
Thanks james
<script>
function doURL() {
ncheckInDate=do cument.getEleme ntById("checkIn Date").value
ncheckInMonth=d ocument.getElem entById("month" ).value
ncheckInYear=do cument.getEleme ntById("year"). value
nnumberOfNights =document.getEl ementById("nigh ts").value
nnumberOfAdults =document.getEl ementById("adul ts").value
nnumberOfRooms= document.getEle mentById("rooms ").value
t="http://www.ichotelsgro up.com/redirect?checkI nDatebrandCode= 6c&path=asearc
h&city=London&c ountryId=0925&r ateTypeCodes=6C BARC&checkInDat e="+checkInDate +
"&checkInMonth= "+month+"&check InYear="+year+" &numberOfNights ="+nights+"&num b
erOfAdults="+ad ults+"&numberOf Rooms="+rooms+" &hotelCode=LONL H"
alert(t)
location.href=t
}
</script>
Comment