I think it would have save you alot of time if you'd set the store method up alot better.
Maybe this way could have helped??

SAVE THE POST
--------------------------------------------------------
Bring in data from FORM as usual
Set usertype from form to be either "admin" or "guest" maybe as a type=hidden depending on whatever login rights you store.

$message = join('|', $usertype, $username, $date, $comments); $message .= "\n"; open ("post", "/absolute/path/to/file") or print error; print post $message; close (post);
READ THE POST(s)
-------------------------------------------------------
Choose to read admin only on this instance...
$readtype = 'admin';

open ("post", "/absolute/path/to/file") or print error; @post = <post>; close (post); foreach (@post) { ($usertype, $username, $date, $comments) = split ('[|]',$_); if ($readtype eq $usertype) { print qq| From $username ($date):<p> $comments<p> ______________________________________<br> |; } }
This way you can pick the name off better in any future admin than having to search for it on a line.

Maybe no help at all, but there you go.
If its not, im sorry.
It was good practice for my typing skills anyway :)

ThAtH0M


In reply to Re: Re: Message Board Mangling by Thathom
in thread Message Board Mangling by achiles

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.