I've done just that. But instead of typing just [PAGEBREAK] you will also have to type something like [NEXTPAGE=Text that links to next page] and it works without a hitch. Here's the code I have used:
Code:
$nextID = $pid + 1;
$articleText = eregi_replace("\[NEXTPAGE=([-_./a-zA-Z0-9 !&%#?,'=:~\"]+)]","<A HREF=\"/article.php?aid=$aid&pid=$nextID&cid=$cid\">\\1</A><FONT COLOR=\"red\">>></FONT>",$articleText);
Maybe there was a smaller version of my regular expression but this one worked for me. If it ain't broke, don't fix it.
[Edited by kyank on 11-07-2000 at 12:14 AM]
Bookmarks