httpd-users mailing list archives

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

Hint: $_GET["varname"]

HTH HAND
James

-----Original Message-----
From: Danny [mailto:apachewarrior@signatureadvertising.com]
Sent: 24 May 2002 15:12
To: users@httpd.apache.org
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">
</form>

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:

Hi
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
901-754-2200
dswink@signatureadvertising.com



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message