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); ...
122
Manuel Lemos
mallemos
Jul 12, 2005 4:17 pm
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...
123
Kike Becerra
qbecerra
Jul 12, 2005 4:37 pm
Hi Manuel Here is the dump of these variables I don't understand anything of this.. array(3) { [""]=> string(18) "==SELECT COUNTRY==" ["Argentina"]=> ...
124
Manuel Lemos
mallemos
Jul 12, 2005 5:15 pm
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 ...
125
Kike Becerra
qbecerra
Jul 12, 2005 5:29 pm
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==";...
126
Manuel Lemos
mallemos
Jul 12, 2005 5:52 pm
Hello, ... I think the problem is that you do this: $states[][] = "==SELECT STATE=="; It should be: $states[""][""] = "==SELECT STATE=="; -- Regards, Manuel...
127
Kike Becerra
qbecerra
Jul 12, 2005 5:59 pm
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...
128
Kike Becerra
qbecerra
Jul 12, 2005 6:12 pm
Hi I changed this: Before main FOR $states[""][""] = "==SELECT STATE=="; for ($i=0....){ ... $states[$datacountry['COUNTRYNAME']][""] = "==SELECT STATE=="; ...
129
operationsengineer1@...
operationsen...
Jul 15, 2005 6:53 pm
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...
130
Manuel Lemos
mallemos
Jul 15, 2005 7:40 pm
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...
131
operationsengineer1@...
operationsen...
Jul 15, 2005 8:17 pm
Manuel, i commented out the reference to OutputDebug and still received the same error. I also tried adding Function OutputDebug($error) { print "$error92;n"; }...
132
Manuel Lemos
mallemos
Jul 15, 2005 8:33 pm
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 ...
133
operationsengineer1@...
operationsen...
Jul 15, 2005 9:37 pm
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...
134
operationsengineer1@...
operationsen...
Jul 15, 2005 9:57 pm
i forgot to add $form_edit->StartLayoutCapture(); $form_edit->EndLayoutCapture(); $form_edit->DisplayOutput(); ... <?PHP function edit_data(){ REQUIRE_ONCE...
135
Manuel Lemos
mallemos
Jul 18, 2005 12:59 am
Hello, ... No, you can use that without problems. Actually it is slightly faster. ... Used this at the end: $form_edit->DisplayOutput(); -- Regards, Manuel...
136
operationsengineer1@...
operationsen...
Jul 18, 2005 3:35 pm
Manuel, i have the following function designed to display my edit form... function action_display_edit(){ REQUIRE_ONCE ('common/forms.php39;); $form_edit = new...
137
operationsengineer1@...
operationsen...
Jul 18, 2005 3:37 pm
the code used to display the function is below... it might be useful. echo '<span class = "note_page_header">' . $header_text.'<br />'; echo...
138
operationsengineer1@...
operationsen...
Jul 18, 2005 8:49 pm
Manuel, i have the following code on my "main" page (mostly business logic): $form =& new form_class; // enter form variables ...
139
operationsengineer1@...
operationsen...
Jul 19, 2005 6:48 pm
Manuel, i narrowed down the cause of my problem to the following code in my main page... $form->StartLayoutCapture(); REQUIRE_ONCE(TPL); ...
140
operationsengineer1@...
operationsen...
Jul 19, 2005 8:38 pm
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...
141
operationsengineer1@...
operationsen...
Jul 19, 2005 8:57 pm
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...
142
operationsengineer1@...
operationsen...
Jul 19, 2005 10:01 pm
it appears to be a css issue on my end. all my elements are inline, now i just have to hack through my css to put spaces inbetween them. ... ...
143
Manuel Lemos
mallemos
Jul 20, 2005 5:40 pm
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...
144
Manuel Lemos
mallemos
Jul 20, 2005 6:02 pm
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...
145
Kike Becerra
qbecerra
Jul 20, 2005 7:28 pm
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...
146
Manuel Lemos
mallemos
Jul 20, 2005 10:06 pm
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...
147
operationsengineer1@...
operationsen...
Jul 22, 2005 5:17 pm
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 ...
148
operationsengineer1@...
operationsen...
Jul 22, 2005 9:10 pm
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...
149
Manuel Lemos
mallemos
Jul 25, 2005 6:44 pm
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...
150
Manuel Lemos
mallemos
Jul 25, 2005 6:46 pm
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...