I'm trying to post to a web form and get the results back,
I've tried but it seems that I am not posting anything to the page.
What am i doing wring ?

                             <form name="search" method="post"
action="index.php?action=edir">
                             <tr>
                                <td align="left" valign="baseline">
                                    <table width="100%"  border="0"
cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td><img
src="images/heading/search.gif" width="68" height="15"></td>
                                        <td>&nbsp;</td>
                                      </tr>
                                      <tr>

                                        <td><input name="query"
type="text" size="15"></td>
                                        <td><input type="image"
src="images/btn_search.gif" width="82" height="23">
                                            <input name="searchtype"
type="hidden" value="number"></td>
                                      </tr>
                                    </table>
                                </td>
                              </tr>
                              </form>



#!/usr/bin/perl

use strict;
use lib "/common";
use LWP;


my $browser = LWP::UserAgent->new;

my $URL = "http://www.dhivehinet.net.mv/index.php?action=edir&page=0";;

my $response = $browser->post( $URL,
    [ 'searchtype' => '3';
    ]
);

print $response->decoded_content;


-- 
Typos
FourThirty Inc.
Domain Administrator
http://blog.fourthirty.org

Reply via email to