Manuel, I have the following code... INCLUDE ('includes/common.inc.php'); $form=new form_class; $form->NAME="upload_assembly_docs"; $form->METHOD="POST"; ...
117
pvutrix
Jun 23, 2005 5:21 pm
... I have a problem with latest version of forms.php if I set $form->encoding="Windows-1251"; JavaScript alerts show properly but the labels are gibberish, if...
118
pvutrix
Jun 23, 2005 5:25 pm
... problem ... Solved by changing the line 306 of forms.php from $encode=!strcmp(strtolower($this->encoding),"iso-8859-1"); to ...
119
Manuel Lemos
mallemos
Jun 23, 2005 5:50 pm
Hello, I thought I have answered this: ... The ACCEPT attribute is just a recommendation for the browsers to filter the list of files to list. However, most...
120
Manuel Lemos
mallemos
Jun 23, 2005 5:53 pm
Hello, ... That encoding should not affect labels. Can you give me an example of what causes a problem? -- Regards, Manuel Lemos PHP Classes - Free ready to...
121
Kike Becerra
qbecerra
Jul 12, 2005 4:59 am
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...