hi peeps.

got a slight problem with some PHP code, I am totally baffled as have done
this loads of tiems before... perhaps I am too tired to code, but anyway,
here is the deal:

I'm tryign to enumerate the variables int eh $_POST array using the
following:

        $i=0; 
        $ii=count($_POST); 
        for($i=0;$i<$ii;$i++)
        { 
                print $_POST[$i] . "\n";
        }       

when I run it I get the following error:

Notice: Undefined offset: 0 in
c:\inetpub\wwwroot\redemption\admin\add_stock_item_process.php on line 10

(repeats about 6 times)

There are defiately 6 items in the array as count($_POST) returns 6, and
is_array($_POST) returns 1.

any ideas?

many thanks.

 .ben

--
ben joyce // [EMAIL PROTECTED] // +44 (0)7958 933718 //
http://www.babelfish.co.uk


____ • The WDVL Discussion List from WDVL.COM • ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
       Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to