In article <email@example.com>,
sorry_I_dont_need_spam@noway.com enlightened us with...
> I have a form that will output to a flat file when the submit button
> is pushed.
> As you can probably guess every form object must have a name because
> the Perl script has to know how to append the form object info to the
> flat file.
> My problem is that the form I've created is HUGE. Manually copying
> and pasting these form names is going to take me a very very long
> Is there a web page or application out there that can automatically
> extract the form names from a form in a html document?
> There's got to be a program out there that can do this!
> Thanks for your help.
them for copy/paste?
In the html of the page in question, put this script after the form on
the bottom of the page. The names will be listed one after the other for
copy/paste into the perl doc. Note that the elements must be named. This
assumes there is only one form on the page and all elements are named
uniquely (no arrays).
var f = document.forms;
var l = f.length();
for (var i=0; i<l; i++)
Perl might have a way to get all form elements POSTed (name and value
pairs), but I'm not very good at Perl. I know I can do it in JSP with
GET or POST. Anyway, good luck.
A midget fortune teller who escapes from prison is a small
medium at large.