开发者

string containing comma(,) is not populated

i am trying to display address that contains commas(,) but the problem is after first comma address in not populating. my code-

<td class="content"><input name="txtShippingAddress2" type="text" class="box" id="txtShippingAddress2" size="40" maxlength="100" 
        value=<?php echo $Address; ?> ></td>

my address in DB = '23 Awe, Charls street' but it is displaying only '23 Awe' if i remove comma it will di开发者_开发问答splay whole address. what shoul i do?


You need to put quotes before the <?php and after the ?>:

value="<?php echo $Address; ?>"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜