> C> Here is an example of what I mean:
> C> Here is a basic form built with cgi.pm.
> C> Name the script "test"
> 
> C> print header;
> C> if (param("foo")) {
> C>     print start_html,
> C>     "You Entered: ",em(param("foo")),
> C> }
> 
> C> else {
> C>     print start_html,
> C>     start_form(-action=>"/perl/test"),
> C>     "Enter something : ",textfield("foo"),
> C>     submit,
> C>     end_form,
> C> }
> C> print end_html;
> 
> C> Works with no errors under CGI and
> Apache::Registry
> C> Then I would add the above script as an include
> in the
> C> following page (demo.shtml):
> 
> C> <html>
> C> <head>
> C> <title>Test SSI Page</title>
> C> </head>
> C> <body>
> C> <p>This is a test page</p><br>
> C> <!--#include virtual="/perl/test" -->
> C> </body>
> C> </html>
> 
> C> So the when I access demo.shtml, I see the text
> from
> C> the HTML page and also the form from the included
> C> scipt.
> 
> C> When I fill out the form and hit submit, the
> returned
> C> data gets printed to the screen:
> 
> C> "You Entered" plus whatever you entered in the
> form.
> 
> C> What I would like to do is fill out the form,
> submit
> C> it, and end up back to the shtml page with the
> result
> C> of the script (rather than the form) included in
> the
> C> shtml.
> 
> C> I understand why this is happening, I am not
> asking
> C> why, all I am asking is what is the preferred
> method
> C> of accomplishing this.
> C> Thanks
> Form action have to be not perl script, but your
> *.shtml file.
> And in your include you must send QUERY_STRING to
> perl script.
> I don't remember exactly, but ther were problems
> with POST data,
> because it I've stoped using SSI.

Thanks for the reply, but what would you use rather
than SSI ?  I am not committed to SSI, it is just what
I know at this moment.

Thanks
 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

Reply via email to