Very Simple Code...But Won't Work...
Posted: Sun Feb 03, 2008 8:15 am
Ok, my first page is;
My second page, print.php is;
I can't get print.php to display the "Hello World" text...It's just a blank page.
NB: PHP is fully working on my server- this is not the problem.
Any suggestions? Thanks.
Code: Select all
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Hello world</title>
</head>
<body>
<form method="post" action="print.php">
<p name="text">
Hello world.
</p>
<input type="submit" value="Click here" />
</form>
</body>
</html>Code: Select all
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Print</title>
</head>
<body>
<?php echo $_POST["text"]; ?>
</body>
</html>
NB: PHP is fully working on my server- this is not the problem.
Any suggestions? Thanks.