I think I'd have two scripts: save_form.cgi and load_message.cgi. You submit your form and it goes to save_form.cgi, which saves the data. save_form.cgi returns a simple page that just says "message saved" or whatever, and has a bit of javascript that changes the right_frame's location to something like "load_message.cgi?id=1234", where 1234 is the recently submitted message's identifier. Then just have load_message.cgi read the thing they just posted, and display it.
I should warn you though, I'm a little sleep deprived from being sick lately, so there's probably easier/better ways to do it. That was just my initial reaction to it
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|