HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Developers' Forum (
-   -   Template Form Values (

nveid 23rd August 2011 05:35

Template Form Values
How can I use a template form value that is not defined in the form/list definition file(I don't want to write this form value to SQL)?

Any examples I could be pointed to possibly?

till 23rd August 2011 10:46

You can set the variable manually with the setVar function of the templating system in the onShow function of the form.

For examples, take a look at the various *_edit.php files.

nveid 23rd August 2011 11:26

I mean reading it in, not displaying it to the template.

till 23rd August 2011 11:28

You mean a submitted form value? All submitted values are in the PHP $_POST variable. You can e.g. use the onAfterUpdate or onAfterInsert functions to implement actions that occur after a form has been submitted.

nveid 23rd August 2011 11:37

Ahh, okay thanks! The appropriate method on the object to throw my code in. That completes a lot of the work I been working on, thanks! :)

All times are GMT +2. The time now is 22:01.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.