Auto Hyperlink from text file

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
Oleg Butuzov
Last Samuray
Last Samuray
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Post by Oleg Butuzov » Sun Nov 10, 2002 9:57 pm

Dear Steve,

One monthe ago I wark at tha project like in your project , BUT...
I needs knolege that i did not have that day, sorry...

Creat a html file with this content and you will see a result...
<TEXTAREA><a href=http://www.somelink.com>Somelink</a></TEXTAREA>


Without ActivX you can not do good editor for your custumers, you can just enter formated html and just after that you you can use it...

Oleg Butuzov
Last Samuray
Last Samuray
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Post by Oleg Butuzov » Tue Nov 12, 2002 6:17 am

sorry , my English not so good. (it is not native language for me)

Are you want to replase all \n\r at <br> ?

if yes than...

Code: Select all

<form method="post" action="text.php">
  <textarea name="text">
<?php

$text = $HTTP_POST_VARS["text"];
$text = ereg_replace("\r\n|\r|\n","<br>",$text);

echo $text;

?>

  </textarea>
  <input type="submit">
</form>

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest