[htmltmpl] Problem in TMPL_VAR Display : String containing space is not displayed
Brought to you by:
samtregar
From: Rakhi V. <rak...@fl...> - 2005-11-07 11:58:20
|
Hi, I am facing some problem with the output of TMPL_VAR VALUE when the VALUE text contains space charater e.g "abc efg". When the template is output the <TMPL_VAR> is not replaced with the VALUE text i have specified. Only the value before the space i.e "abc" is displayed. "test.tmpl" file contains this line: <input maxlength="50" name="name" value=<TMPL_VAR NAME=cust_name> "test.pl" script contains this code: my $template = HTML::Template->new(filename => test.tmpl); $template->param(cust_name => "Deepak Puri"); my $value = $template->param('cust_name'); $value contains "Deepak Puri". But when html is displayed only "deepak" is displayed . String after the space character is not displayed. Can you please provide a solution to this ASAP. Thanks & regards Rakhi *********************** FSS-Private *********************** "DISCLAIMER: This message is proprietary to Flextronics Software Systems Limited (FSS) and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. FSS accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus." |