I have problem with single or double quotes. I was read here some benefits of using single and double quotes, and i know different. My problem is next. Why can i use double quotes inside text input and it is echo success.
This is my form.
echo "<form action=\"display.php\" method=\"POST\">";
echo "<input type=\"text\" name=\"text\">";
echo "<input type=\"submit\" value=\"display\">";
My display.php
$word = $_POST['text'];
echo $word;
My question is. Why is double quotes allowed in input? In my head,i think that if double quote come inside text input then we have 3 duoble quote and parser will not know where is end of string? i know what is escaping for database, but i ask for this case. Thanx