Hi guys I mailed the calendar plugin author and asked him about the problem I had, which I posted in prior posts. He told me to fix with this... inserting this...
I ran it in the debugger again and noticed that it is losing the content (when run in a browser) that gets assigned to Smarty which is why the View Source...
Here is a hidden element I'm trying to add as input: self::$form->AddInput( array( 'TYPE' => 'hidden', 'NAME' => 'id', 'ID' => 'id', 'VALUE' => $id, ...
Hello Manuel, Please give me some psuedo-code as to at what point in the code (where exactly) I could write-to/read-from Cache_Lite. In normal Smarty, it is...
It was my oversight, though. I fixed the datatype error and added the input to the template and now the debugging error is gone. However, it generates HTML for...
Hello, ... Opening a PHP script file directly in the browser will not make the PHP script be interpreted. Obviously you need to make the script be executed by...
Hello, ... Yes, but it probably would not make sense to tell him that an hidden field is invalid, as the user would not be able to fix it, it is not visible. ...
Hello, ... Usually I do not use Smarty myself. Anyway, there is not much point to cache forms because if the use submits new values and the form is not valid,...
Hello, ... Use the "ExtraAttributes" parameter to specify HTML tag attributes that are not directly supported by the class. -- Regards, Manuel Lemos ...
Manuel, You said the Submit button is disabled on click but I noticed that it is getting disabled only on a second click with an alert whereas it might have...
... Manuel, To display all server-side validation errors at once, is it not possible to populate them in an array and eliminate duplicates before dumping their...
Manuel, I'm a bit confused here. After the validations are successful, do I use the values in $_POST/$_GET or from GetInputValue() to update the database? If...
Manuel, 1. I use a gradient background box for elements in edit mode by setting their CLASS attribute during AddInput() but when the form is rendered in...
Hi, GetInputValue() returns only a single value (maybe, you were speaking of a sub-form). However, here is a tiny function I wrote to return ALL the 'editable'...
... i tested it and it returned an array for me. i printed the array to my scrren via print_r() and i actually saw multiple values with my own eyes, not to ...
Your code works with SELECT elements with the MULTIPLE attribute. If you remove the MULTIPLE attribute, it still returns a single VALUE (non-array) as per the...
Hello, ... The problem are the nervous users that submit the form twice double-clicking on the submit button inadvertently. To minimize that problem the class...
Oops! There is a small correction for SELECT/MULTIPLE switch: ///////////////////////////////////////////////////////////////// final function getInputValues(...
Hello, ... That is not the problem. The problem is that some validations only make sense if other have succeeded first. I can show that a field is invalid ...
Hello, ... Always use GetInputValue for normal fields. ... No. ... The class already does that on values that are changed by the class, like for instance those...
Hello, ... Quoting should never be done for security reasons, but rather to build syntatically correct SQL. Quoting will not save you from any security...
Hello, ... It does not exist. I could add it but I do not think it is a good idea. The function is useful but not everybody needs it. If I add all possible ...
Hello, ... It would solve your problem but not everybody would like that behavior. Why don't you just set the CLASS attribute for all fields when you set the...