Skip to main content
Participant
September 29, 2006
Question

Undefine Index

  • September 29, 2006
  • 2 replies
  • 213 views
hello community

can somebody anybody please clarify my mistake in this following:

what is the meaning of this error message:

"undefined index"

I am using dwmx2004 to create an output page and I am using Apache with PHP. In the Form method I used "Post". I checked all the coding and couter-checked my text field variable and is OK and to counter check whether my Apache is properly configured with PHP, I used the "phpinfo()" and I can get the php info page.

thanks for the help
This topic has been closed for replies.

2 replies

Participant
September 29, 2006
thanks David Powers / community, I got it done correctly, it was my mistake for not filling in the "php" extension in the "Action" fill.

thanks everybody for the help :)
Inspiring
September 29, 2006
oldLearner57 wrote:
> what is the meaning of this error message:
>
> "undefined index"

Without more details of your script, it's difficult to give you a
precise answer, but "Undefined index" is an error message created by PHP
when you try to use an array variable that doesn't exist. For instance,
if you have the following line:

echo $_POST['name'];

You will get Undefined index if $_POST['name'] doesn't exist. One reason
it might happen is if your form use "Name" (with a capital N). Because
PHP is case-sensitive, the correct variable would be $_POST['Name'].

--
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/