Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

$ (dollar sign) and textarea

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
gclift
Smarty n00b


Joined: 16 May 2004
Posts: 2

PostPosted: Sun May 16, 2004 7:56 pm    Post subject: $ (dollar sign) and textarea Reply with quote

I'm having a very weird issue with Smarty and Textareas. I will assign a string to a smarty variable and when printing within a textarea, it will print nothing or a random string. In the same template, I'll write an input text and also, just display the string. The problem only happens in the textarea. I've searched the Smarty Forums and couldn't find any pre existing references to this problem.

Code:
PHP Code:
$smarty->assign('test',"It will cost $8.00 to play.");


Code:
Template Code:
<textarea name='test'>{$test}</textarea>
<br><input type='text' name='test2' value='{$test}'>
<br>{$test}


Code:
Output:
(Inside textarea)It will cost .00 to play.(/textarea)
(Inside text)It will cost $8.00 to play.(/text)
It will cost $8.00 to play.


Details:
    Smarty Version: Version: 2.3.1
    PHP Version: PHP Version 4.3.2
    Webservers:
      Apache/1.3.27 (Win32)
      Apache/1.3.27 (Unix) (Red-Hat/Linux)

    Browsers:
      IE 6.0.28
      Mozilla Firefox 0.8
      Mozilla 1.7b


Thank you in advance
Gary Clift
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP