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="radio" name="beepStatus" value="yes" <TMPL_IF NAME="yesBeeps">CHECKED</TMPL_IF> > </td> Hope this helps, Hugues ----- Original Message ----- From: "Rama Srinivas" <[EMAIL PROTECTED]> To: <html-template-users@lists.sourceforge.net> 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. 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="radio" name="beepStatus" value="yes" <TMPL_VAR NAME="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 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Html-template-users mailing list Html-template-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/html-template-users