becasue your $test string contains double quotes. This is casuing you to
end the value element in the input tag.
- Anthony
Gerard L Petersen [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi
My code looks like this.
?PHP
$test = gerard's name is \gerard\;
echo $test.br;
echo
Opp... forgot this use htmlspecialchars( ) to fix it. It will convert
your to quot; for you. So you code should look like this:
?PHP
$test = htmlspecialchars (gerard's name is \gerard\);
echo $test.br;
echo 'input type=text name=test2 value='.$test.'br';
?
form action=test2.php
2 matches
Mail list logo