Newer Version Available
Getting Query String Parameters
You can reference query string parameters in Visualforce markup by using the $CurrentPage global variable. Using $CurrentPage, you can access the query string parameters for the page by specifying the parameters attribute, after which you can access each individual parameter:
For example, suppose you want to add detail information about a specific contact to an Account page. The account record ID is specified by the default id query string parameter, and the contact record ID is specified by the query string parameter named cid:
For this example to render properly, you must associate the Visualforce page with valid account and contact IDs in the URL. For example,
if 001D000000IRt53 is the account
ID and 003D000000Q0bIE is the
contact ID, the resulting URL should be:
Displaying Field Values with Visualforce has more information about retrieving the ID of a record.
