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; ?>"
精彩评论