[PHP] Re: Repopulating forms

2003-08-14 Thread Anthony
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

[PHP] Re: Repopulating forms

2003-08-10 Thread Anthony
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