Query Strings - detecting and accessing
Posted: Thu Feb 20, 2003 4:05 am
Can any one tell me how to access a query string and how to test if it exists?
Basically when a user hits a page I need to test to see if a query string has been defined. If it is the first time they come to the page, then it won't be there and so needs to display a list of links which link to the same page but with a query string. So the second time they get there the query string will exist and it will pull a record from the database based on that query string.
My work in the past has been in ColdFusion and I know I would do it there by using isdefined("url.id") etc.
Thanks
WillowFae
Basically when a user hits a page I need to test to see if a query string has been defined. If it is the first time they come to the page, then it won't be there and so needs to display a list of links which link to the same page but with a query string. So the second time they get there the query string will exist and it will pull a record from the database based on that query string.
My work in the past has been in ColdFusion and I know I would do it there by using isdefined("url.id") etc.
Thanks
WillowFae