I am parsing an HTML page which has forms on it.
I think maybe this belongs here instead of cgi-beginners?
(Note, I'm parsing the form source, not the form results!)
I am trying to extract the variable names as well as their
labels so that I can write out an SPSS file which maps
variable names to questions etc.

So for example, if I have
<input type='radio' name='variable1'><option value='1'>Strongly Agree

I want to be able to pull out the name of the variable and the knowledge
that 1 maps to Strongly Agree.

I've tried messing with HTML::Parser, ::PullParser, and ::TokeParser,
with little success. If these tools are the way to go, can someone point
out some good tutorials/examples? If something else is needed, suggestions would
be much appreciated. I started out using regexes, but realized that it was
becoming so specific to the page I'm using as an example that I might as
well have cut and pasted from the HTML source. Argh!

        Pete

--
Mynd you, møøse bites Kan be pretty nasti...




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to