Brian Dunning's FileMaker Custom Functions

GetValueFromURLString ( paramname ; sourcecode )

Gets a parameter name from a URL string in an HTML document.

  Average rating: 4.1 (41 votes) Log in to vote

Brian Dunning   Brian Dunning
BrianDunning.com
https://www.briandunning.com

Share on Facebook Share on Twitter

  Sample input:
GetValueFromURLString ( "id" ; "a href=\"http://www.mysite.com?id=12345\"" )
  Sample output:
12345

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

This searches an HTML document for any incidence of a URL containing the parameter you specify, and returns that parameter's value.

The parameter name must be preceded by either ? or & and the value must be followed by either a & or a ".

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Under construction. Email me your wish list for improvements.