----- Original Message -----
From: "Andrew Wax" <[EMAIL PROTECTED]>

When the perl script is done I would like to bring up a different web page -
let's say next.htm.

Andrew, when you submit a form via CGI (I'm assuming that's what you mean by
clicking on a button), the browser displays the output of the CGI script.

So, if you wanted to display a file called next.htm, simply have the script
print the contents to STDOUT, with the appropriate headers, e.g.:

    # the following must be printed with two new lines
print("Content-Type: text/html\n\n");

if(open(RFH,"/path/to/next.htm")) {
    while(<RFH>) {
        print;
        }
    close(RFH);
    } else {
        # could not open next.htm
        print("<h1>ERROR:</h1>Could not open next.htm -> $!\n");
        }

exit(0);

It's really quite a simple operation, I would reccomend also looking into
CGI.pm

!c (dolljunkie)


_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to