i'm learning php and need to strip all the bbcode from a guestbook entry before it's posted to a flat file - i had one snippet, a small one, but i couldn't make it work wherever i put it in the script...
my write function is
[php]
$Input = "$message";
/* This combines the new data (the html code from above) with the old data (what was already in the .txt file. */
$New = "$Input";
/* This writes everything to the .txt file and then closes up the script. */
$filename = "caption.txt";
$fp = fopen( $filename,"w");
fwrite($fp, $New, 80000);
fclose( $fp );
[/php]
if you could tell me where the strip function needs to be placed, also...
thanks whoever can help...
glenn

