Hi everyone,
Am confused about what the @#%# is happening to my scripts because this was
working yesterday, now i restarted my localhost machine and its not working
now more....and its real simple stuff as you see.
if(isset($id))
{
$result = count ($id);
echo $result;
echo $id[0]." ".$id[1]." ".$id[2]." ".$id[3]." ".$id[4];
exit;
}
then i am passing 2 id[]'s like so:
http://localhost/BWH/Project/compareTesting.php?PHPSESSID=431984b7b39946fd74
bf0b45b9771b54&id%5B2efwaf2%5D=20&id%5B2efwaf3%5D=21&type=1
/* ***
html code something like this:
<input type=checkbox name='id[sh1]' value=3>
<input type=checkbox name='id[sh2]' value=4>
***** */
The output i am getting is:
2
Notice: Undefined offset: 0 in c:\phpdev\www\bwh\project\comparetesting.php
on line 39
Notice: Undefined offset: 1 in c:\phpdev\www\bwh\project\comparetesting.php
on line 39
Notice: Undefined offset: 2 in c:\phpdev\www\bwh\project\comparetesting.php
on line 39
Notice: Undefined offset: 3 in c:\phpdev\www\bwh\project\comparetesting.php
on line 39
Notice: Undefined offset: 4 in c:\phpdev\www\bwh\project\comparetesting.php
on line 39
Which is really strange as count is showing that id[] has 2 values....
Wheres the problem?
one funny think i did notice (i dont know if its related) is that i am
calling
compareTesting.php but it is giving me the notice/error for
comparetesting.php (note the upper case "T" in the first one)
-Ryan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php