how do i generate a select box with let's say 90 options? like a "select country". and how do i insert records to database. do i have to write custome code...
I have not been able to succesfully run the test_smarty_form.php script. I get the form page, but only the title, and header "Test for Manuel Lemos' PHP form...
Hello, ... I have tested the example with that version of Smarty and it works fine. Usually the error that you mentioned happens when you change the form ...
... header "Test ... blank. ... define ... is ... fine. ... form ... the call ... to ... changed ... your ... focus to ... call ... function ... It appears...
... test_smarty_form.php ... 2.6.7 ... works ... necessary ... AddFunction ... OK nothing wrong with Smarty - but here's where it fails in forms.php: Function...
Hello, ... The pre-filter is only called when the template is compiled. When you call fetch(), the pre-filter has already been executed. -- Regards, Manuel...
Hello, ... This means that the input field element specified in the AddFunction call is not present in the form output definition. It seems that either you...
Hello Manuel, No I have not changed the templates (form.tpl, header.tpl, footer.tpl, formerror.tpl). The email section of the template looks like this: <tr> ...
Hello, ... It is hard to tell without further examination. If the input field is not added to the form output when the AddFunction is called and you have not...
... footer.tpl, ... have ... It turns out that it was a permissions problem. The template files were not readable by apache. D'oh! Thanks for taking the time...
before allowing data to interact with a database, one should prepare the data to make sure it will be stored in the database correctly and prevent malicious ...
Hello, ... For presenting values in the forms, the forms class already uses HtmlEntities() to output HTML tag attribute values and data. Escaping text strings...
Hello, ... You need query the database and retrieve the values and their names to build an associative array with the pairs of options values. For instance...
i have set up my form so that the logic part is primarily in my main page and i use and include statement to call a content template as required. everything...
Hello, ... If you are using Smarty as template engine, keep in mind that the Smarty plug-in that comes with the class is just for composing the form HTML. It...
... Manuel, I'm not using smarty. i am loading in my separate display file via and include statement. i tried to combine the two files into one file by calling...
hello all, may be a scope problem? did you pass the form to the function? good luck. el_varta...
Alejandro Vartabedian
avartabedian@...
Feb 15, 2005 10:23 am
34
Hello, ... I am not sure how you are including your files. Maybe you miss the form output definition calls. After you define your form fields, you should have...
Alejandro, now that you mention it, scope must be one of my problems. i've been trying to reorganize the code without any luck. i think my current problem is...
Hello, ... It is hard to understand your problem without seeing a real example. Can you please send a minimal script that demonstrates your problem? -- ...
is there a simple way to populate a dropdown box with database entries? i think i'd need to run the query, assign the results to variables and then populate...
Hello, ... I have explained that in a message sent not very long time ago. Here is the message: http://groups.yahoo.com/group/forms-dev/message/29 -- Regards, ...
... Manuel, thanks for the drop down box from a db example. however, the above wasn't addressed - i probably should've put it in a second post. is the above...
Hello, ... The visible length attribute is SIZE. MAXLENGTH is the limit of the text in the field including any text that may not be visible. ... The scroll...
Hello, I have a number of forms all using your form_class class. I am using it in conjunction with Smarty, following the example provided. The problem I am...
... provided. ... Here's the problem - if you use different values for the "NAME" and "ID" parameters in AddInput(), then Validate() fails. Strange....
Hello, ... It is hard to tell without a concrete example. Can you post the smallest example that you can write that exhibits this behavior? -- Regards, Manuel...
Manuel, how can i call a function inside of your class? i want to call a simple date function, but i can't figure out how to get it done. i tried loading in...