#10887 [Com]: Variables from forms being undefined
| From: | story-vagrant1294 at hotmail dot com | Date: | Tue, 20 Jul 2004 15:03:34 +0000 |
| Subject: | #10887 [Com]: Variables from forms being undefined | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-62881@lists.php.net to get a copy of this message | ||
ID: 10887
Comment by: story-vagrant1294 at hotmail dot com
Reported By: mikepeterson at videotron dot ca
Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Windows 2000 Pro
PHP Version: 4.0.5
New Comment:
<a href=http://18--anal-show-mpegs.da.ru>story
vagrant</a>
Previous Comments:
------------------------------------------------------------------------
[2001-06-14 16:57:07] sniper@php.net
Not bug. Check your setting in php.ini
------------------------------------------------------------------------
[2001-05-15 16:27:19] mikepeterson at videotron dot ca
This function did not work in PHP4.05:
elseif ($delete) {
// delete a record
$sql = "DELETE FROM models WHERE model_id=$model_id";
$result = mysql_query($sql);
echo "$sql Record deleted!<p>";
}
Unless I added isset() like so:
elseif (isset($delete)) {}
But as I added that in other functions that returned a value from
mySQL, every value returned would be "1" or TRUE.
------------------------------------------------------------------------
[2001-05-15 16:23:28] derick@php.net
This script shows no isset(), please be a little more descriptive.
Derick
------------------------------------------------------------------------
[2001-05-15 16:01:31] mikepeterson at videotron dot ca
Here is an example of a script that returned the error in 4.05, and
works in 4.04.
elseif ($delete) {
// delete a record
$sql = "DELETE FROM models WHERE model_id=$model_id";
$result = mysql_query($sql);
echo "$sql Record deleted!<p>";
------------------------------------------------------------------------
[2001-05-15 15:54:10] derick@php.net
Please post a short reproducing script. (short is under 10 lines)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/10887
--
Edit this bug report at http://bugs.php.net/?id=10887&edit=1