Wednesday 03 March 2004 6:37:09 am
Thanks Paul, Please excuse me reusing your text :) I moved my code into the correct statement (I should have realised I got this wrong!).
>> One thing to note from the previous thread, you may want to check on the values coming over via >> $http since you may never reach a null statement because you always have an option. I think I'm ok on this, I'm running it with a {$http.post|attribute(show)} I get:
Attribute Type Value
ContentObjectAttribute_ezselect_selected_array_5457 array Array(1) >0 string 'NULL'
>> Therefore you may need to check the first element is as your expect, maybe use something else apart >> from null and test by examining the string. Good idea! However, when I tried it I get "uerl" and "test" in place of NULL (as specified in the select in the tpl). I was wondering - am I specifying the array attribute properly? My code still looks the same as above, except the first line is now: function validateObjectAttributeHTTPInput( &$http, $base, &$contentObjectAttribute ) There also doesn't appear to be anything in the debug output relating to the PHP file. Regards, James
|