Log in

View Full Version : Help with code for making a link from text


rh2004
12-09-2008, 04:01 PM
Hiya, I have an old vb version and I have added a private field so users can add a facebook url, what I have done is set it so the user can enter the ID so this is the number of the users profile,

I have set the allowed as only numbers and the number must be between 7-10 characters long.

What I want to do is make the link clickable but using the number the user enters in the box

Here is an image and my name for the field box is: field5

Can anyone tell me how to make it clickable to the users profile so they can add etc.

e.g:

http://www.facebook.com/home.php?#/profile.php?id=888215715

Lynne
12-09-2008, 04:19 PM
<a href="http://www.facebook.com/home.php?#/profile.php?id=$userinfo[field5]">Facebook Page</a>

Try that and let us know if it works. If not, let us know what the result was.

rh2004
12-09-2008, 05:03 PM
Yeah that works great, thanks alot I have just edited it so it opens in a new window :)