By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
Sometimes you need to parse a query string from the URL right in the form. One solution is to use a CGI server variable.
- Create a new computed when composed text field called query_string containing itself -- query_string. It causes a Web server to input content of the CGI Web server query_string variable (everything beyond the ? in the URL).
- Then create a new computed for display only multi-value text field called "parameters," for instance. This field should contain the following @Formula:
@Explode(@Right (query_string; "&"); "&")This separates all name=value type sequences into multi-value ones and omits the URL commands beyond the ?.
- Then create two new computed for display multi-value text fields called "ParamNames" and "ParamValues," for instance, and containing the following @Formulas:
@Word(Parameters; "="; 1) and @Word(Parameters; "="; 2)There are split values from names.
- Then it's possible to search for a particular name in ParamNames using:
@If(@IsMember("Required_Name"; ParamNames); @Subset(@Subset (ParamValues; @Member ("Required_Name"; ParamNames)); -1); "Not present")
Do you have comments on this tip? Let us know.