Reply to Re: Saving variables over multiple pages

Your name:

Reply:


Posted by Joe Smith on 10/30/05 12:29

Ed Jay wrote:
> I'm writing a Perl script that processes various form data and outputs a
> report based on the data. I want to use a single Perl script, but collect
> the data on multiple html pages. I do not particularly want to create the
> html pages from within the Perl script. How do I do it?

What is the source of the form data? Are you getting it from a file
(data previously processed) or straight from the browser (CGI in realtime)?

For the latter, simply use a hidden field to identify which subsection
of your CGI program to use to parse the data. Grab the data from
the browser as each page comes in and write it somewhere. You'll
have to have some sort of mechanism to inform your CGI when the
data collection is complete so that it can create a summary.

This is assuming that you are not trying to parse the HTML output
from another site's CGI program. You'd want WWW::Mechanize for that.

-Joe

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация