> # Read file
> $s=$/;
> undef $/;
> open(FILE, "$nt_dir\\$formfile");
> $file=new CGI(FILE);
> close(FILE);
> $/=$s;

{ local $/ = undef;
  open FILE, "$nt_dir/$formfile" || die ("Could not open file: $!");
  $file = new CGI( FILE ); }

> Now, how do I just peruse through all of the HTML tags (like <input
> type="text" name="username" value="jsmith">)? I want to change
> value="", selected, checked, etc., to the values passed from a
> previous submit.
> 
> I've looked at the docs for CGI.pm, CGI::Pretty, HTML::Form,
> HTML::Parser, HTML::FillInForm, HTML::TokeParser, with nothing to show
> for it. I'm kinda frustrated.  So far, the only suggestions have been
> "look at this or that module."

I bet the Cookbook has something about navigating through a document. 

Randal Schwartz does a lot of columns in WebTechniques where he has to
work with HTML documents. I'd take at look at:

"
Well, one way is to let the CGI script perform the normal data entry
validation, retrying the form until the data is correct as far as can be
determined without connecting with the order entry system
"

http://www.stonehenge.com/merlyn/WebTechniques/col38.html

it might be what you are looking for. He talks about filling out forms
remotely ( I just glanced at it ).

This is a link to all of his other columns:

http://www.stonehenge.com/merlyn/WebTechniques/

- Ron
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to