You haven't made clear exactly what you're trying to do. I'm assuming you're looking to gather survey data. There's no "best way" to do this, or it depends, at any rate, on the type of data you're trying to collect. In general, the model I would recommend would work something like:
First, you'd create a web page with a form for the data you want to gather from the user. The form would not need to collect their in-world name or anything like that, but you would want fields for all the data you're trying to gather. Just imagine this as a simple web page for now -- don't worry about the back end script.
Ok, now you need a way to gather the user's name and key as you display this form to them. To do this in world, you'd start with a prim and on on_touch event. When the user touches the prim, a script sends an http request to a .php or .aspx script hosted on a remote server. The script inside the prim would send an http request including the name and key of the user who touched it. The .php script would receive this data, drop it into a database (mySQL or MSSQL, probably), along with a unique key. The in-world script would receive the unique key and use it to generate a link.
Ok, now that simple form? Now you'd need to apply some server-side scripting. Assuming you're using .php, the form page needs to be able to retrieve GET data to determine the unique id of this visit. In other words, if Hubert Mann clicks the prim and the remote script creates a database entry for him under the unique id 12345, the remote script then sends the unique id back to the in-world script, which would generate a link that would look something like
www.yourserver.net/formscript.php?id=12345 Now, when Hugh fills out the form, he doesn't need to include his in-world name, because the form already knows to drop the information into the database entry with the unique id 12345, which is registered to Hugh's account.
This may sound complicated, but to the end user, it will appear very simple: he clicks a prim, the object sends him a request to open a web page, he opens the page and sees a form. He fills out the form, presses submit, and voila, you have the data you needed. The back-end scripting is a little more complicated than basic LSL, but .php is pretty easy to work with, and mySQL too, if you have at least some experience.
Alternately, I would be happy to set this up for you some time. Send me a notecard in-world with more details and I'll return a price quote and time estimate.
Best of luck!
Lily