Welcome Guest, Not a member yet? Register   Sign In
how can i do this...
#1

[eluser]flyenig[/eluser]
I have a form where my users can enter their profile information.
In the form, there is a Textarea where users can enter their website or websites.

here is the code to display the users website or websites.
Code:
&lt;?php echo '<a target="_blank" href="http://'.$website.'">'.$website;.'</a>';?&gt;

Lets say in the textarea where they edit their website they enter
Code:
facebook.com/blahblah

it will display perfectly "facebook.com/blahblah"

But if they enter
Code:
facebook.com/blahblah
test.com/thisisme

if will display facebook.com/blahblahtest.com/thisisme

how can i separate these links? Thank you!
#2

[eluser]Abdul Jamal[/eluser]
nl2br($string);

try this

Thanx
#3

[eluser]flyenig[/eluser]
how do i do it so that its separate links?
#4

[eluser]flyenig[/eluser]
nvm i fixed it.




Theme © iAndrew 2016 - Forum software by © MyBB