Not quite. Here's the form input field for `radius` (Distance):
select class="c-form__select" id="radius" name="radius" aria-label="Ch +oose a distance from your postcode"><option value="">Distance (nation +al)</option><option value="1">Within 1 mile</option><option value="5" +>Within 5 miles</option><option value="10">Within 10 miles</option><o +ption value="15">Within 15 miles</option><option value="20">Within 20 + miles</option><option value="25">Within 25 miles</option><option val +ue="30">Within 30 miles</option><option value="35">Within 35 miles</o +ption><option value="40">Within 40 miles</option><option value="45">W +ithin 45 miles</option><option value="50">Within 50 miles</option><op +tion value="55">Within 55 miles</option><option value="60">Within 60 +miles</option><option value="70">Within 70 miles</option><option valu +e="80">Within 80 miles</option><option value="90">Within 90 miles</op +tion><option value="100">Within 100 miles</option><option value="200" +>Within 200 miles</option></select>

(https://www.autotrader.co.uk/)

I'm after all the values of the `value=` tags for each `<option>`, i.e. 5,10,20,30 etc into an array which I can then use elsewhere in the code. Perhaps find_all_inputs() wasn't the correct way to capture this?

In reply to Re^2: How do I pull HTML form option values? by unklejunky
in thread How do I pull HTML form option values? by unklejunky

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.