|
From: <php...@li...> - 2009-01-21 17:18:07
|
Hi all,
I'm a Java programmer, & a complete newbie when it comes to PHP.
I've recently moved a customer's website to a new host running tomcat
5.5.14 on a homegrown flavor of Linux.
This website contains both PHP and Java/JSP.
All I'm really trying to do is get the tomcat webapp to handle *.php
pages correctly.
I've setup web.xml as shown in examples (using the PhpCGIServet to
handle *.php pages), and have placed links in the /WEB-INF/cgi directory
to an existing php installation on the server (as well as a link to
this installation's ini file).
I have an HTML page as follows:
<html>
<body>
<form name="frm" id="frm" method="POST" action="test.php">
<input type="text" name="txtTest" />
<input type="submit"/>
</form>
</body>
The text.php page is as follows:
<html>
<body>
<? print(Date("1 F d, Y")); ?>
<?php
echo "<H1>You entered " . $txtTest . "</H1>";
?>
</body>
</html>
When I submit from the HTML page to PHP page, the PHP is processed
correctly (date is shown, "You entered" is shown), but the parameters
passed across in the HTTP Post are not coming through.
Any idea how to proceed?
Rgds,
Assaf
|