Assuming $url would simply do this : #!/usr/bin/perl use CGI; # ..... set $grab
# use $grab to get the data you want form db print "Content-type :text/plain"; print "$grab=$grab_value"; exit; ######################### and then I do this form one of your examples : use LWP::Simple; my $content = get "$url?grab=first_name"; die "Couldn't get $url" unless defined $content; # Then go do things with $content, like this: #if I did : print $content; Would $content be 'first_name=joemama' ? Same question but with this example : use strict; use warnings; use LWP 5.64; my $browser = LWP::UserAgent->new; my $url = 'http://www.altavista.com/sites/search/web'; my $response = $browser->post( $url, [ 'grab' => 'first_name' ] ); die "$url error: ", $response->status_line unless $response->is_success; print $response->content; Would that print 'first_name=joemama' ? thanks for the links, I'm trying to grasp what all of this does exactly. Am I on the right track ?? Thanks Dan At 05:42 PM 2003-01-19 -0600, you wrote: >[...]Any help would be very much appreciated as I am familiar with perl >and DBI and CGI but completely clueless with LWP. If you're in a paying mood, get /Perl and LWP/: http://www.amazon.com/exec/obidos/ASIN/0596001789/t If you want just a good free intro: http://www.perl.com/lpt/a/2002/08/20/perlandlwp.html http://www.perl.com/pub/a/2002/08/20/perlandlwp.html If you see any typoes in there, let me know! (Same with the book, too! Very soon now, me and the O'Reilly folks are doing a new printing of /Perl and LWP/ with all sorts of typoes fixed.) -- Sean M. Burke http://search.cpan.org/~sburke/
