G'day all
I have an index.shtml file containing 5 ssi includes:
top.pl (merely prints out some html and some variables)
vote.cgi (see below)
middle.shtml (plain html)
news.cgi (prints out news items)
bottom.pl (merely prints out some html and some variables)
vote.cgi is the one where I'm stumped.
My goal is that when the user votes and submits the form, the form is replaced by the results in the same place on the main page. I understand this would mean essentially re-writing the other pages and altering the output... but I can;t seem to get it to work.
Currently, vote.cgi picks up the fact that it is having a vote submitted using a hidden form field and prints out the results. The problem is the results are printed on their own separate page and I want them to replace the form on the main page.
I have searched, but I found nothing dealing with this specfic problem... any help greatly appreciated.
Cheers in advance
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.