Try using $_POST['name'] or $_GET['name']. 

print "my name is $_POST[name]";

Daniel Kushner
Need hosting?

-----Original Message-----
From: Muhammad Khairuzzaman [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 09, 2002 8:22 AM
Subject: [PHP] Undefined variable

I'm trying to process data from a form, regardless whether I'm using GET
or POST method,  the value that i get in the processed form is still

I check in the error log file and this is what it say:
[Wed Oct 09 20:18:47 2002] [error] PHP Notice:  Undefined variable:
name in e:\program files\apache group\apache\htdocs\test.php3 on line 3

Or is there something wrong in my code? Or something with my setting?

<form method=GET action=test.php3>

      <td width="50%" style="border-style: none; border-width: medium"
  <p>Name: <input type="text" name="name" size="20"></p>
  <p><input type="submit" value="Submit" name="submit"><input
type="reset" value="Reset" name="B2"></p> </form>
print "my name is $name";

PHP General Mailing List (
To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to