# Input string was not in a correct format

**URL:** <https://forum.kirupa.com/t/input-string-was-not-in-a-correct-format/161025>\
**Category:** Uncategorized\
**Created:** [August 31, 2005, 1:43pm UTC](https://forum.kirupa.com/t/input-string-was-not-in-a-correct-format/161025 "2005-08-31T13:43:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![daveyboy808](https://avatars.discourse-cdn.com/v4/letter/d/2acd7d/32.png) [@daveyboy808](https://forum.kirupa.com/u/daveyboy808)\
**Post date:** [August 31, 2005, 1:43pm UTC](https://forum.kirupa.com/t/input-string-was-not-in-a-correct-format/161025/1 "2005-08-31T13:43:38Z")

</div>

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.

```auto

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:

```auto

[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:

```auto

[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
