[Chicago-talk] www::mechanize - setting a drop down list

Jay Strauss me at heyjay.com
Sat Nov 1 18:27:34 CST 2003


Hi,

I'm trying to set a <select> list in a form and then submit but I'm not
getting any results

# $a is my mech
    $a->get($txnPage);
    $a->submit_form(
        form_name => 'DATERANGE',
        fields    => {TIME_PERIOD => 3, }
    );

    print $a->content,"\n";

but the content is the same as it was when I originally retrieved the page

I'm trying to set the code in:

  <SELECT NAME="TIME_PERIOD" onChange="selectTimePeriod()" SIZE="1"
STYLE="font-size: xx-small; font-family: Arial,Helvetica;">
      <OPTION VALUE="0" SELECTED>Last 7 Days</OPTION>
      <OPTION VALUE="1" >Last 14 Days</OPTION>
      <OPTION VALUE="2" >Last 30 Days</OPTION>
      <OPTION VALUE="3" >Last 60 Days</OPTION>
      <OPTION VALUE="4" >Last 6 Months</OPTION>
      <OPTION VALUE="5" >Current Year</OPTION>
      <OPTION VALUE="6" >Prior Year</OPTION>
  </SELECT>


Any help would be appreciated
Jay







More information about the Chicago-talk mailing list