Get path variables: Difference between revisions
Jump to navigation
Jump to search
imported>Bale r8628 |
imported>Wrldwzrd89 m Sentences should end with periods. |
||
Line 26: | Line 26: | ||
see_also={{SeeAlso|form_fields|get_path_full|get_path}}| | see_also={{SeeAlso|form_fields|get_path_full|get_path}}| | ||
special=When this function is called by any script that is not a relay override, it returns an empty string| | special=When this function is called by any script that is not a relay override, it returns an empty string.| | ||
}} | }} | ||
[[Category:Relay Browser Functions]] | [[Category:Relay Browser Functions]] |
Latest revision as of 22:52, 26 November 2014
Function Syntax
string get_path_variables()
When called by a relay override script, this returns the variables (if there are any after a "?") of the URL that was submitted in the relay browser. This return value does not include the name of the page.
Code Sample
Print path information about how the current override was called.
print( "This script was called by the URL: " + get_path_full() );
if( get_path_variables() != "" ) {
print( "Which is composed of the page name: " + get_path() );
print( "followed by a question mark and the variables: "+ get_path_variables() );
}
See Also
Special
When this function is called by any script that is not a relay override, it returns an empty string.