Googled but couldn't find an answer.
I have
echo "<input type = 'text' value = ".$value." name = ".$input_id."/>";
$value
or $input_id
contains a dot which is conflicting with the dot used for concatenation. How do I escape it?
Thanks!
Googled but couldn't find an answer.
I have
echo "<input type = 'text' value = ".$value." name = ".$input_id."/>";
$value
or $input_id
contains a dot which is conflicting with the dot used for concatenation. How do I escape it?
Thanks!
If the variables contains eg. space, they has to be in quotes. Concat operators cause no problem.
echo "<input type='text' value='" . $value . "' name='" . $input_id . "'/>";
Use this
echo "<input type='text' value='" . $value . "' name='" . $input_id . "'/>";