#441319 Score: 0
Profile photo of Tim K
Tim K
Member
contributor
beginner
intermediate
advanced
friend finder
junior moderator
advocate
wise owl
curious george
Group Member
354 pts
@timk

There are two decisive typos in your code:

“Varuserkey is not defined”, because in Lectora there is no variable called “userkey”. The name of your variable is “userKey”.

When using the function you need to pass the correct values:

You wrote your url looks like this:

test.com?userID=1111&key=111

To “getParameterByName(name,url)” you need to pass the name of the parameter, which is “key” not “userKey”. The other parameters name is “userID”, exactly like it is spelled in the URL.