Sunday, March 06, 2005

Fx add_link

/* Fx ADD_LINK
Add a link
******************************/
function add_link($text, $link="#", $new_page=FALSE) {

// _blank target?
$target = "";
if ( $new_page ) {
$target = " target=\"_blank\"";
}

$link = "<a href=\"$link\"$target>$text</a>";

echo $link;

return OK;

} /* end Fx */
/******************************/

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home