PDA

Click to See Complete Forum and Search --> : querystring i think?


gsc1ugs
Dec 5th, 2000, 08:16 AM
I have this string

main.asp?success=1&REPORT_INFO:USER=user1&REPORT_INFO:SERVICE=access&REPORT_INFO:SERVICE=Access&REPORT_INFO:PRICE_COUNTRYID=1 &REPORT_INFO:PRICE_CURRENCY=None&REPORT_INFO:RENTAL_PERIOD=1&ACCESSPRICEINPUT:CUSTSITE:0=""&ACCESSPRICEINPUT:CUSTTELCODE:0="" &ACCESSPRICEINPUT:CUSTCITY:0=""&ACCESSPRICEINPUT:CUSTDISTRICT:0=""&ACCESSPRICEINPUT:CUSTPOSTCODE:0="" &ACCESSPRICEINPUT:CUSTSTREET:0=""&ACCESSPRICEINPUTESTSITE:0=""&ACCESSPRICEINPUT:TARIFFTERM:0=0 &ACCESSPRICEOUTPUT:CUSTSITE:0=Site&ACCESSPRICEOUTPUTESTSITE:0=Munchen&ACCESSPRICEOUTPUTISTANCE:0=323.22198486328125 &ACCESSPRICEOUTPUT:TARCONNECT:0=3792.97509765625&ACCESSPRICEOUTPUT:TARIFF:0=2.048M E1 Intl&ACCESSPRICEOUTPUT:TARRENTAL:0=12487.5576171875 &ACCESSPRICEOUTPUT:CUSTSITE:1=TOTAL&ACCESSPRICEOUTPUTESTSITE:1=""&ACCESSPRICEOUTPUTISTANCE:1=323.22198486328125 &ACCESSPRICEOUTPUT:TARCONNECT:1=3792.97509765625&ACCESSPRICEOUTPUT:TARIFF:1=""&ACCESSPRICEOUTPUT:TARRENTAL:1=12487.5576171875

yep rather large.. what method can i use to parse this string into a table so i can view it for what it is .. a variable with a result for each

ie:

<tr><td>REPORT_INFO:USER = </td><td>user1</td></tr>

etc

monte96
Dec 5th, 2000, 09:11 AM
Is this string the url for the current page? If so, just use the Request.Querystring collection to get the values. Otherwise you'll have to parse it yourself.

gsc1ugs
Dec 5th, 2000, 09:43 AM
This is an incoming string from the outside world... i need to parse.? any quick way to parse something this size that changes daily.?


Many thanks