AH-HA! that was it! I was getting the notices on the last iteration of $i. I changed this:
for($i=0; $i <= sizeof($this->inputs); $i++)


to this:
for($i=0; $i < sizeof($this->inputs); $i++)

i.e.
I changed <= to <

DOH! I guess I need more coffee...

On Mar 1, 2004, at 10:15 AM, Raditha Dissanayake wrote:

could be your $i > length of array

Jough P wrote:

Greetings all, I'm getting "Notice: Undefined offset" regarding this line of code while inside a for loop:
if($this->inputs[$i] == "user")


I assume the 'offset' that is undefined is $i. But $i is defined is the for statement above it.


-- Raditha Dissanayake.
----------------------------------------------------------------------- -
http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.


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


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



Reply via email to