#1  
Old 23rd August 2011, 04:35
nveid nveid is offline
Member
 
Join Date: Jan 2006
Location: Daytona Beach, FL
Posts: 87
Thanks: 7
Thanked 17 Times in 14 Posts
Send a message via Yahoo to nveid Send a message via Skype™ to nveid
Default 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?
__________________
-- RLB
Reply With Quote
Sponsored Links
  #2  
Old 23rd August 2011, 09:46
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,383
Thanks: 833
Thanked 5,485 Times in 4,317 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 23rd August 2011, 10:26
nveid nveid is offline
Member
 
Join Date: Jan 2006
Location: Daytona Beach, FL
Posts: 87
Thanks: 7
Thanked 17 Times in 14 Posts
Send a message via Yahoo to nveid Send a message via Skype™ to nveid
Default

I mean reading it in, not displaying it to the template.
__________________
-- RLB
Reply With Quote
  #4  
Old 23rd August 2011, 10:28
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,383
Thanks: 833
Thanked 5,485 Times in 4,317 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.

Last edited by till; 23rd August 2011 at 10:56. Reason: typos
Reply With Quote
  #5  
Old 23rd August 2011, 10:37
nveid nveid is offline
Member
 
Join Date: Jan 2006
Location: Daytona Beach, FL
Posts: 87
Thanks: 7
Thanked 17 Times in 14 Posts
Send a message via Yahoo to nveid Send a message via Skype™ to nveid
Default

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!
__________________
-- RLB
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig v3, PowerDNS and cluster adminnc Installation/Configuration 5 11th November 2010 14:43
Form predefined values tomlobato Installation/Configuration 0 29th August 2010 18:59
Creating SSL crashed apache punto Installation/Configuration 8 22nd June 2009 08:00
Edited form, but values aren't saved on the database rolandpish General 3 7th August 2007 16:20
Default values for variables in DNS template Rustin General 1 29th December 2006 11:17


All times are GMT +2. The time now is 07:45.


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