First off I apologize for my ignorance, it probably's stinking up the halls of the temple but here it goes...
(You're right b10m I was a little vague and this is $a afterall)
The problem is this:
I have a script a.cgi in which I have a form that submits the name of a text field to another script, b.cgi. Then b.cgi uses this name (does something) and returns it back to a.cgi (via a hidden field) to display this name in the some html generated by a.cgi after it returns from b.cgi. (This is for a forum. The main page (a.cgi) contains a request for new thread in the form of a text box. Once a name for a new thread is entered, you are taken to the writting page (b.cgi). Then you're redirected back to a.cgi to display the name of the posting as a n html link to the actual post (a text page generated in the previous page) ) The problem is that a single post has been posted and I'm back in a.cgi looking at the hyperlink, if I press reload, another identical last thread link appears. This is because the a.cgi form that first forwarded the name is retaining its last entered value and creating a form everytime a.cgi is refreshed. (I dont mind that the form that creates a new thread is run everytime the page is refreshed since I have a check that doesn't write the thread if the name entered is less than four characters in length such that when a new form tries to be generated with a blank name it is ignored)
I actually got the forum going by making it only display the forum link in a.cgi if the last page was b.cgi (the page in which the form is written) and the form name is not in the log file that contains all of the thread names. However, I shouldn't need the first check. How can I get a fresh form everytime the page is refreshed without using these checks?

In reply to Re: Re: resetting form values by pmachin
in thread resetting form values by pmachin

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.