Re: Problems with HTML::TEMPLATE

"Hugues de Mazancourt" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <00f301c52a46$bfc679a0$640010ac@lys>
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: <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.