httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Green" <>
Subject RE: php with apache
Date Fri, 24 May 2002 14:28:10 GMT
Read at the bottom and use the right
variable accessing method.

Hint: $_GET["varname"]


-----Original Message-----
From: Danny []
Sent: 24 May 2002 15:12
Subject: php with apache

I have a form.html page that looks like this:

<form action="action.php" method="post">
Your name: <input type="text" name="name">
Your age: <input type="text" name="age">
<input type="submit">

And an associated action.php page that looks like this:

Hi <?php echo $name; ?>.
You are <?php echo $age; ?> years old.

(this is from the php intro tutorial)
But, when I enter data and click submit from the form.html page, I get this:

Notice: Undefined variable: name in c:\apache1.3.24\apache\htdocs\action.php
on line 1
. You are
Notice: Undefined variable: age in c:\apache1.3.24\apache\htdocs\action.php
on line 2
years old

some other php pages are working on my Windows98/php enabled Apache 1.3.24
server.  does anyone know what the problem here is?   thanks

Daniel Swink
IT Manager
Signature Advertising, LLC

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message