Unwanted “signs output on a visitor’s last name! Why?
The name is defined once (without quote marks) …
L.122 If($TEST){$last_name = Longfellow;} //with or without quotes on Longfellow
The first output of last_name occurs in an HTML table, as wanted, without “signs.
L. 202
// output: Longfellow
It occurs next in an echo note to the visitor, always with “signs. Here’s 4 test variations:
echo ‘L460 last_name =’."$last_name", ‘’; //Output: L460 last_name =“Longfellow”
echo ‘L461 last_name =’. $last_name, ‘’; //Output: L461 last_name =“Longfellow”
echo “L462 last_name =”. $last_name, “”; //Output: L462 last_name =“Longfellow”
echo “L463 last_name =” , “$last_name”, ‘’; //Output: L463 last_name =“Longfellow”
Why do single- and double-quotes both insert double-quotes, which were never defined in the last name string?
Thanks for ideas
USIT