Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Font

Options
  • 01-02-2004 5:38pm
    #1
    Registered Users Posts: 986 ✭✭✭


    ok , how can i assign a certain font to the variable $message in the following php page.

    [PHP]

    <?php
    if ($message != '')
    {
    $message = str_replace ("\n","<br>",$message);
    $message = strip_tags ($message, '<br>');

    $newRow = '<div class="viewGuestbook">' . date('d.m.Y H:i') . ' - ' . strip_tags ($name) .
    '<br>' . ($message) . '<hr>' .
    '</div>';

    $oldRows = join ('', file ('guestbook.txt') );
    $fileName = fopen ('guestbook.txt', 'w');
    fputs ($fileName, $newRow . chr(13) . chr(10) . $oldRows);
    fclose ($fileName);
    }

    include ("readbook.php");
    ?>

    [/php]


Comments

  • Registered Users Posts: 7,739 ✭✭✭mneylon


    You don't.
    You would use CSS to assign the font value to the DIV class.


Advertisement