> $_POST[ID]
> Since there are no quotes around the variable name ID and no dollar sign
> front of it, PHP will look for a constant named ID and if one is not found
> it will blow chow.

Depending on your error_reporting() level whether this "warning" is reported
or not. Better to not use this method, though.

> $_POST    ['ID']
> Should work find, assuming a variable named ID came from your form.
> I wouldn't get in the habit of writing my arrays like this.  It's
> to say the least.

What habit would you recommend? This is the way to do it. Not sure why the
spaces are there, but without them, this is the way you should write your

---John Holmes...

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to