Forum Moderators: open

Message Too Old, No Replies

ASP?id=2 thingies

how to place multiple information is one asp file

         

cmatcme

11:43 am on Feb 17, 2005 (gmt 0)

10+ Year Member



I have a new host now and it only supports Microsoft's language ASP.

I am pretty used to the language PHP but moved for more space, bandwidth etc.

Anywho, in PHP you can create multiple files in one eg:

" index.php?id=1 " may display " Hello "

and

" index.php?id=2 " may display " World "

and

" index.php?id=1&id=2 " may display " Hello World"

Is it possible to do the same with ASP?

" index.asp?id=1 "

And How?

Thanks/

dotme

1:31 pm on Feb 17, 2005 (gmt 0)

10+ Year Member



In ASP, getting an individual variable in a querystring is accomplished with

cstr(request("variable"))

If cstr(request("id")) = "1" Then
response.write "Hello"
ElseIf cstr(request("id")) = "2" Then
response.write "World"
End If

That should get you rolling :-)