Hi Manuel (and the other members) I tried to build 2 linked selects, taking data for each select field from DB... I've a countries table: (ID,COUNTRYNAME); ...
Hello, ... This is hard to see. Please post a var_dump($countries,$states); -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in...
Hi Manuel Here is the dump of these variables I don't understand anything of this.. array(3) { [""]=> string(18) "==SELECT COUNTRY==" ["Argentina"]=> ...
Hello, ... The indexes of origin select must match the indexes of the target select. In the origin you have the indexes: "", "Argentina", "Chile". In the ...
Hi Manuel Yes, I supposed that, but how to fix this in the FOR structure ? When it is single array, doing like this works: $countries[] = "==SELECT COUNTRY==";...
Hello, ... I think the problem is that you do this: $states[][] = "==SELECT STATE=="; It should be: $states[""][""] = "==SELECT STATE=="; -- Regards, Manuel...
Hi !!! This was great help... I put that, and Now I see the STATES FIELD !!! but: I see this: Country: ==SELECT COUNTRY== State: ==SELECT STATE== When I click...
Hi I changed this: Before main FOR $states[""][""] = "==SELECT STATE=="; for ($i=0....){ ... $states[$datacountry['COUNTRYNAME']][""] = "==SELECT STATE=="; ...
Manuel, i would like to use your forms class in a function designed to print out an id text box and and "edit" button. the form is actually very simple. the...
Hello, ... The problem is that you are not defining the OutputDebug function. So, either you define that function or remove the line above that assigns the...
Manuel, i commented out the reference to OutputDebug and still received the same error. I also tried adding Function OutputDebug($error) { print "$error\n"; }...
Hello, ... I suspect that you really did not change the code that you think you changed. You see, the error points to a line that calls a function set to the ...
Manuel, good call. this was the culprit... $form_edit =& new form_class; i should have left it without the & sign)... $form_edit =& new form_class; do you...
i forgot to add $form_edit->StartLayoutCapture(); $form_edit->EndLayoutCapture(); $form_edit->DisplayOutput(); ... <?PHP function edit_data(){ REQUIRE_ONCE...
Hello, ... No, you can use that without problems. Actually it is slightly faster. ... Used this at the end: $form_edit->DisplayOutput(); -- Regards, Manuel...
Manuel, i have the following function designed to display my edit form... function action_display_edit(){ REQUIRE_ONCE ('common/forms.php'); $form_edit = new...
Manuel, i am trying to layout the output of two forms functions... $form_edit and $form_delete inline. if i type the following code... function hello(){ print...
it could be a css issue on my end (maybe my submit button is causing a break). i'll test it out and get back with you. i am having other layout problems with...
Hello, ... This does not make much sense. Your function does not return anything when you call it. So the first call will make it output before the first data...
Hello, ... Of course, there is no magic here. If you do not set the ACTION class variable, it goes to the same page. If you set it to elsewhere, the class will...
Hi guys I "discovered" this when working with linked selects... I was wondering why the linked select fields were bot being posted in my form... Then, when I...
Hello, ... Those are private inputs. You should not access them directly as their names and definition may change in the future. The right way to get the...
Manuel, i was using a forms class package downloaded in late january, 2005 and my form worked as advertized. i just updated to the latest and greatest version ...
Manuel, i'm not sure how far you are with incorporating linked selects in your class, but i have an application that could use it. (choose defect area -> list...
Hello, ... The class was fixed in this release to require that you set the SELECTED property with an array with the options that are selected, as is described...
Hello, ... I already told you that such feature is available since the previous releases using form_linked_select custom input plug-in class. I don't know why...