Hi everyone
I am trying to send the following LoadVars() object to an ASP page. The string sent the ASP is fine apart from it includes a ‘?’ symbol on the end which shouldn’t be there.
on (release) {
var bookingData = new LoadVars();
var strURLToCall;
strURLToCall = "[http://84.92.195.220/LodgeXMLTest/booking.aspx?wbsaction=ADDROOMRESERVATIONDIRECT](http://84.92.195.220/LodgeXMLTest/booking.aspx?wbsaction=ADDROOMRESERVATIONDIRECT)";
strURLToCall = strURLToCall+"&propertyid="+33;
strURLToCall = strURLToCall+"&adultCount="+2;
strURLToCall = strURLToCall+"&childCount="+0;
strURLToCall = strURLToCall+"&infantCount="+0;
strURLToCall = strURLToCall+"&arriveDate="+"18/08/2005";
strURLToCall = strURLToCall+"&departDate="+"20/08/2005";
strURLToCall = strURLToCall+"&roomCount="+2;
strURLToCall = strURLToCall+"&roomRateId="+21;
strURLToCall = strURLToCall+"&ratePlanRoomTypeId="+18;
strURLToCall = strURLToCall+"&roomTypeId="+1;
bookingData.send(strURLToCall, "_BLANK", "POST");
}
So the URL sent is:
[http://84.92.195.220/LodgeXMLTest/booking.aspx?wbsaction=ADDROOMRESERVATIONDIRECT&propertyid=33&adultCount=2&childCount=0&infantCount=0&arriveDate=18/08/2005&departDate=20/08/2005&roomCount=2&roomRateId=21&ratePlanRoomTypeId=18&roomTypeId=1](http://84.92.195.220/LodgeXMLTest/booking.aspx?wbsaction=ADDROOMRESERVATIONDIRECT&propertyid=33&adultCount=2&childCount=0&infantCount=0&arriveDate=18/08/2005&departDate=20/08/2005&roomCount=2&roomRateId=21&ratePlanRoomTypeId=18&roomTypeId=1)?
When it should be:
[http://84.92.195.220/LodgeXMLTest/booking.aspx?wbsaction=ADDROOMRESERVATIONDIRECT&propertyid=33&adultCount=2&childCount=0&infantCount=0&arriveDate=18/08/2005&departDate=20/08/2005&roomCount=2&roomRateId=21&ratePlanRoomTypeId=18&roomTypeId=1](http://84.92.195.220/LodgeXMLTest/booking.aspx?wbsaction=ADDROOMRESERVATIONDIRECT&propertyid=33&adultCount=2&childCount=0&infantCount=0&arriveDate=18/08/2005&departDate=20/08/2005&roomCount=2&roomRateId=21&ratePlanRoomTypeId=18&roomTypeId=1)
Can anyone help me write some ActionScript that will prevent the ‘?’ from being added on the end of the URL string?
Cheers
Dave