Hi Arka, HTTP is a somewhat stateless protocol, so in general the post->template->post round trip is perfectly safe.
As far as I can tell, you seem to be doing things just fine. Does the error show up without SSL? Does it show up in non-IE browsers? You do not, perchance, have any load-balancers in the equation do you? They can sometimes screw up SSL sessions. Is there any more detail in the error message than "The Page Cannot Be Displayed"? Is it an IE error or IE reporting a server-side error? Does anything show up in the server logs? Rumour has it Arka Roy, on or about 04/09/2005 7:51 AM, whispered: > Hi! > > I am an experienced C/C++ PC application programmer but a complete > newbie to Perl, CGI, HTML::Templates, and internet programming generally. > > I have created a simple sequence of forms, CGI scrips, and templates. I > am sometimes getting an error displaying the final template in Internet > Explorer when it is used under SSL. The "sometimes is the disconcerting > part. > > My question here is not so much about SSL, but if what I am doing is > valid in the first place. > To sum up here is what I am doing. > > HTML file with form -> cgi script -> template with form -> cgi script -> > template > > I am passing data from the forms to cgi via "post" and then using the > Perl CGI "param" command. I am passing data from CGI to templates using > $template->param(). > > I get the "The page cannot be displayed" error in IE at the last step, > ie. when the last CGI script is trying to display the last template. > > The gory details are below, for your reference. But my question is > pretty basic. Is is OK to display a template with a form in it, call a > CGI from that form, and have that CGI display another template? > > Thanks, > Arka Roy > > ---------------- > Access: https://ssl.somedomain.com/Login.html > > | > | > V > > Login.html > --------- > - user fills form > - user presses submit > > | > | > V > > DisplayForm.cgi > --------- > my $template = HTML::Template->new( filename => 'Form.tmpl' ); > $template->param( displayValue => $myValue ); > print "Content-Type: text/html\n\n"; > print $template->output; > > | > | > V > > Form.tmpl > --------- > - displays <tmpl_var name="displayValue"> > - user fills form > - user presses submit > > | > | > V > > SubmitData.cgi > --------- > my $template = HTML::Template->new( filename => 'SubmitDone.tmpl' ); > $template->param( displayResult => $myResult ); > print "Content-Type: text/html\n\n"; > print $template->output; > > | > | > V > > SubmitDone.tmpl > --------- > - displays <tmpl_var name="displayResult"> -- Chris Beck - http://pacanukeha.blogspot.com understand, v: To reach a point, in your investigation of some subject, at which you cease to examine what is really present, and operate on the basis of your own internal model instead. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Html-template-users mailing list Html-template-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/html-template-users