php - Html Concatenate issue -
i have following code.
echo "<label><input type='checkbox' data-path=".".".$infostatus['status'].""." id='name' class='new1' value=".$infostatus['status']."/>".$infostatus['status']."<span></span></label> </li>";
it produces this:
<input type="checkbox" data-path=".deleted" without="" payment="" id="name" class="new1" value="deleted">
although trying produce this:
<input type="checkbox" data-path=".deleted without payment" id="name" class="new1" value="deleted without payment">
i don't know doing wrong here, have tried everything.
first echo variable, , make sure "deleted without payment". once have confirmed that, can wrap html around it. have quotes in variable's value end data-path field.
Comments
Post a Comment