in reply to Re: How to display output in separate html form in cgi script
in thread How to display output in separate html form in cgi script

I mean to say that i want to redirect the result to another cgi script suppose result.cgi which will display the output
print "<html>"; print "<head>"; print "<title>Hello - Second CGI Program</title>"; print "</head>"; print "<body>"; print "<h2>Hello $first_name $last_name - Second CGI Program</h2>"; print "</body>"; print "</html>";
but how result.cgi will fetch the $first_name $last_name from hello_post.cgi?

Replies are listed 'Best First'.
Re^3: How to display output in separate html form in cgi script
by NetWallah (Canon) on Jan 24, 2014 at 05:53 UTC
    The same way your script does - using $ENV{'QUERY_STRING'};

    As suggested earlier, the CGI module (use CGI;) makes programming this a lot easier, by offering you param("first_name") etc.

            If your eyes hurt after you drink coffee, you have to take the spoon out of the cup.
                  -Norm Crosby

Re^3: How to display output in separate html form in cgi script
by Anonymous Monk on Jan 24, 2014 at 07:10 UTC

    I mean to say that i want to redirect the result to another cgi script suppose result.cgi which will display the output

    Um, what do you mean by redirect? HTTP redirect (aka location header)?

    Or do you simply want to change the form action to  <FORM action="something.else/the_script_i_really_wanted.cgi"  > ??