Re: [htmltmpl] Problems with HTML::TEMPLATE
Brought to you by:
samtregar
From: Hugues de M. <hu...@ma...> - 2005-03-16 16:41:42
|
Hello, I see no reason why your code doesn't work. Did you try to display that = variable ? Personally, I use the following construct, which is a little heavier, = but possibily more in the spirit of completely separating HTML from = code: <td>Beeps: yes: <input type=3D"radio" name=3D"beepStatus" value=3D"yes" <TMPL_IF = NAME=3D"yesBeeps">CHECKED</TMPL_IF> > </td> Hope this helps, Hugues ----- Original Message -----=20 From: "Rama Srinivas" <ra...@sa...> To: <htm...@li...> Sent: Wednesday, March 16, 2005 5:29 PM Subject: [htmltmpl] Problems with HTML::TEMPLATE Hi I am reading information from a DB and prepopulating my form fields.=20 I am using HTML:TEMPLATES module to process my html tmpl files Some of the entries in my table are radio buttons. I am prepopulating = them but for some reason they donot seem to be prepopulated. I tried to = do a view page source to see if the html is properly generated. It seems = to do so. All the other form fields are working fine. except radio buttons. IS there any known issue with radio buttons prepopulation when using = html tempalates. Here is the snippet of the code in my tmpl file. <td>Beeps: yes: <input type=3D"radio" name=3D"beepStatus" value=3D"yes" <TMPL_VAR = NAME=3D"yesBeeps"> > </td> The yesBeeps param displays checked or is empty string depending if that = radio button has to be prepopulated or not. But suprising even if it is = marked as checked it does not show that in my html page. Any help or hints would help. Or i need to switch to the old style of = printing html doc through my perl program thanks rama |