Hi Everyone.
This is driving me nuts. Can someone help me out?
I installed the following on a fresh box:
-Red Hat Linux v7.3, Custom install
(I installed all of the development tools, etc. but none of the "server's", like Apache, Samba, NNTP, etc.
-MySQL v3.23.53a
-Apache Server v1.3.26
-PHP v4.2.3
To install the last three correctly, I used directions from the following link: http://www.ozetechnology.com/howtos/apache.shtml
I got everything up and running just fine, and I tested my PHP install by writing a simple script that echoed something to the effect of "The current time is: mm/dd/yyyy hh:mm:ss" replacing all of the time delimiters with the appropriate values. Since that worked fine, I went on to the next step.
I designed the following html form from a tutorial,
PHP 101 Part 2:
<html>
<head>
<basefont face="Arial">
</head>
<body>
<center>
<form method="GET" action="login.php4">
<table cellspacing="5" cellpadding="5" border="0">
<tr>
<td>
<font size="-1">So what's your name?</font>
</td>
<td align="left">
<input type="text" name="name" size="10">
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit">
</td>
</tr>
</table>
</form>
</center>
</body>
</html>
...I go to a browser, run this php document, which submits a simple text entry (a name, in this case) to another .php script, login.php. Login.php looks like this:
<html>
<head>
<basefont face="Arial">
</head>
<body>
<center>
<font face="Arial" size="-1">
I wonder if you've heard of Shakespeare, <? echo $name; ?>.
<p>
He postulated that a rose by any other name would smell just as sweet.
<p>
What do you think?
</font>
</center>
</body>
</html>
... in the line
I wonder if you've heard of Shakespeare, ____
the _____ should be replaced by a variable, which is passed in the URL as
-- Simple, right? In mine, here is my output, straight from doing a 'View Source:'
<html>
<head>
<basefont face="Arial">
</head>
<body>
<center>
<font face="Arial" size="-1">
I wonder if you've heard of Shakespeare, .
<p>
He postulated that a rose by any other name would smell just as sweet.
<p>
What do you think?
</font>
</center>
</body>
</html>
... The variable is obviously not picked up in this code, nor is it picked up in any other piece of code I write. Am I missing something? Were the instructions listed in this PHP101 HOW-TO course written for PHP3 and things have changed in PHP4?
I've tried everything I can think of. Any ideas?
Thanks in advance!
-Paul