Share this page

# Example: web_create_html_param

Consider the following HTML code segment.

First–time visitors: <a href=/exec/obidos/subst/help/first–time–visitors.html/002–8481703–4784428>Buy books for a penny </a>.</b>

When a user clicks on the link "Buy books for a penny", the browser displays the HTML page at /exec/obidos/subst/help/first–time–visitors.html/002–8481703–4784428. The number 002–8481703–4784428 is a reference number that changes each time a user accesses the site, and is valid for that session only. To save this dynamic number to a parameter, you could use the create_html_param function where "first–time–visitors.html/" is the left boundary, and ">Buy books for a penny" is the right boundary. The string between the left boundary and the right boundary (002–8481703–4784428) is saved to the parameter called "user_access_number". After retrieving this dynamic number, you can use it anywhere in your script.

The output is:

Notify: Saving Parameter "user_access_number = 002–8481703–4784428"

web_create_html_param("user_access_number", "first–time–visitors.html/", ">Buy books for a penny");

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: