|
Cookbook /
EasyHttpRequestsSummary: Quickly and easily retrieve variables from a URL (HTTP Requests)
Version: 1.0
Prerequisites:
Status:
Maintainer: overtones99
Categories: Markup
Questions answered by this recipeHow can I pass and retrieve a page variable in pmwiki via a URL? DescriptionA simple way to pass and retrieve page variables via a URL (HTTP Requests). Sending & Requesting Variables via HTTP Requests
//// GET VARIABLES FROM URL ////
2. Then, if you'd like to pass a variable to a page, you can add it to your URL as such: send one variable:
http://myPmwikiSite.com/pmwiki/MyGroup/MyPage?x=blam(approve links)
or send multiple variables by separating them with an ampersand ( &):
http://myPmwikiSite.com/pmwiki/MyGroup/MyPage?x=blam&y=blee&z=blech(approve links)
By clicking this link to this current page (notice the appended variables), the variables would show up below:
current x-var: {$urlVarX}
current y-var: {$urlVarY}
current z-var: {$urlVarZ}
this should then show up on your page: current x-var: blam
current y-var: blee
current z-var: blech
NotesRelease Notes
See AlsoSearchQueryVariable - very similar, in fact basically the same, but geared towards requesting search variables...
ContributorsComments |