Re: [htmltmpl] fetch the CGI objects
Brought to you by:
samtregar
From: Sven N. <sve...@sv...> - 2008-04-29 07:39:26
|
Mertel, Mark schrieb: > After loading the template, can I fetch all of the input fields and set > them to readonly? Wether or not a input field is disabled is controlled by the disabled Attribute of the HTML element. For HTML 4.01: <input disabled ...> For XHTML: <input disabled="disabled" .../> So, if you want to control the disabled status from your script, you can use this in your template: For HTML 4.01: <input <TMPL_VAR NAME="disabled_flag"> ...> For XHTML: <input <TMPL_VAR NAME="disabled_flag"> .../> In your source code, you can then choose to set the flag: For HTML 4.01: $template->param(disabled_flag => "disabled"); For XHTML: $template->param(disabled_flag => 'disabled="disabled"'); Hope that helps... Regards, -Sven Neuhaus |