<?xml version="1.0" encoding="windows-1252"?>
<node id="1005503" title="Problem with www::mechanize Select." created="2012-11-25 11:23:59" updated="2012-11-25 11:23:59">
<type id="115">
perlquestion</type>
<author id="961">
Anonymous Monk</author>
<data>
<field name="doctext">
&lt;p&gt;Dear Monks,&lt;/p&gt; 
&lt;p&gt; I am trying to do a $mech-&gt;select but it is giving me an error like "Input "search_form:country_id" not found". Actually the "search_form:country_id" is present in the source code. I can not find where the Issue really is. The $mech-&gt;submit is also not submitting! Can anyone pls suggest me where i am getting wrong. The code is provided below.&lt;/p&gt; 


&lt;code&gt;use strict;
use WWW::Mechanize;

my $url = "https://jobs3.netmedia1.com/cp/faces/job_search?null";
my $mech = WWW::Mechanize-&gt;new();
print "$url\n";

eval{
    $mech-&gt;agent_alias('Mac Safari');
    $mech-&gt;get($url);
    $mech-&gt;form_name('myForm');
    $mech-&gt;select('search_form:category_ext_id','0');
    $mech-&gt;field('search_form:continent_id','1');
    my @values = ("25","49");
    $mech-&gt;select('search_form:country_id',\@values);
    $mech-&gt;submit();
    };&lt;/code&gt;

 &lt;p&gt;Thank you all. &lt;/p&gt; </field>
<field name="reputation">
6</field>
</data>
</node>
