On Thursday 03 February 2005 6:50 pm, Paul Archer wrote: > 4:19pm, Ing. Branislav Gerzo wrote: > > Hi all, > > > > My friend is making website in PHP, but my scripts are in Perl, for > > example user write some text, and I want for example print it > > uppercase (I know, bad example, but I want/have to do it - > > something different and more complex - in my case via Perl). > > So I'm thinking how to do it best. > > > > Scenario looks like: > > > > 1. user comes to website (PHP), fill in text-area, click SEND > > button to cgi-bin/uppercase.cgi > > No problem. The whole point of CGI is to not have to worry about what > a program/script is written in. > > > 2. on my server in uppercase.cgi all text change to uppercase and > > this result I want send back via _PHP_ to user. > > Um, wouldn't it be a lot better if you sent back the results using > HTML?
I think he means that he wants his perl to generate HTML containing PHP. The problem here is that it won't get processed by the PHP engine. The two simplest choices are 1) generate all the HTML within your perl, or 2) generate a redirect within your perl to an existing file that contains the PHP. -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>