URL-Parameter (Querystring)

Is it possible to examine the querystring of a called url in a webapplication? I would like to Display Special forms when a user opens my Website. How can I do this?

In unit WebLib.WebTools there are two functions that can help:


function GetQueryParam(AName: string): string;
function HasQueryParam(AName: string; var AValue: string): boolean;

You could use this in the application .DPR source and depending on the query param create a different default form.
1 Like

Hi,

If my url is: https://customers.madd.com/univers/maddoc

Whats is the AName for GetQueryParam that return me: https://customers.madd.com ?

Thanks