[PHP] Re: Getting results from Select Multiple HTML tag

2004-01-05 Thread Tim L
Easiest way is this foreach ($_POST['test'] as $key => $value) { echo $key . '|' . $value . "\n"; } By putting the [] on the end of the variable name in the html, it has turned the variable test into an array. Because test is a post variable, it is now multidimensional. "Tyler Longren" <[E

[PHP] Re: developing a plug-in framework

2004-01-05 Thread Tim L
Its actually quite easy once you wrap your head around the problem. I've just finished writing one in C#, but the concept is portable. First thing you need to know is what goes in the plugin and what goes in the framework. 1. The plugin should not know anything about the framework that it runs i

[PHP] Strange IF(condition) behaviour

2004-01-05 Thread Tim L
I'm not sure if this is intended behaviour or not, but I can see that is might be. Just thought I would bounce this to see what people think about it: Hello This returns a parse error due to the fact there is no brackets around the first part of the if statement. It seems that because the next