Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^2: Extract hidden values from HTML

by Unforgiven (Hermit)
on Dec 14, 2009 at 14:37 UTC ( #812713=note: print w/replies, xml ) Need Help??

in reply to Re: Extract hidden values from HTML
in thread Extract hidden values from HTML

You might have meant this anyway, being that you're giving a very general example, but just in case Kalyanrajsista doesn't - it'd be better to use something semantic for the ids or classes rather than literally "row_1_col_1".

I haven't used the modules mentioned, but I'd imagine it's likely you could just count which row you're on anyway, so you could know which row you're on without that information being in the HTML anyway. What you can't know is what it means. Use class names and ids (remember ids have to be unique to the page) like "last_name" or "total_price" or whatever else is appropriate.

Replies are listed 'Best First'.
Re^3: Extract hidden values from HTML
by Anonymous Monk on Dec 15, 2009 at 06:07 UTC

    I've a row defined as below and I want to extract hidden value from it.

    <td class="c"><input type="hidden" name="recid5" value="10293424">2009 +/08</td>

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://812713]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2020-10-22 07:10 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (225 votes). Check out past polls.