Share this page

# Example: web_create_html_param_ex

Consider the following HTML code segment, which repeats several times on the web page. The number 00n, changes according to where the user clicks. It is 001 for the first occurrence, 002 for the second, and so on.

First–time visitors: <a href=/exec/obidos/subst/help/first–time–visitors.html/00n–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/00n–8481703–4784428. The number 00n–8481703–4784428 is a reference number that changes each time a user accesses the site, and is valid for that session only. To save the sixth occurrence of this dynamic number to a parameter, you could use the web_create_html_param_ex function. The string "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 (00n–8481703–4784428) is saved to the "user_access_number" parameter. After retrieving this dynamic number, you can use it anywhere in your script.

web_create_html_param_ex ("user_access_number",

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

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: