in reply to Partial reloads of a page \ script ?

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...

If the other parts of the page aren't affected, then your facing a situation that frames (and framesets) were designed to handle. If the voting page is in a frame, the frame source can be set to your voting CGI. That CGI can check whether the user has already voted. If not, emit a voting form. If so, emit results. To vote, POST to the same CGI, which records the vote, and emits HTML representing results. The remainder of the page is unaffected.

  • Comment on Re: Partial reloads of a page \ script ?