HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Developers' Forum (http://www.howtoforge.com/forums/forumdisplay.php?f=33)
-   -   Template Form Values (http://www.howtoforge.com/forums/showthread.php?t=53876)

nveid 23rd August 2011 04: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 09: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 10:26

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

till 23rd August 2011 10: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 10: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 10:29.

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