开发者

string containing comma(,) is not populated

开发者 https://www.devze.com 2023-02-07 19:02 出处:网络
i am trying to display address that contains commas(,) but the problem is after first comma address in not populating.

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

精彩评论

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