[PHP] Re: Repopulating forms
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. > > $test = "gerard's name is \"gerard\""; > echo $test.""; > echo ''; > ?> > > > > > > > > > When i run it the bit after the quotes are truncated. Where it truncates > depends on what type of quote i am using. > > Any ideas? > > Thanks > > Gerard > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Repopulating forms
Opp... forgot this use htmlspecialchars( ) to fix it. It will convert your " to " for you. So you code should look like this: "; echo ''; ?> and it will work :) - Anthony Gerard L Petersen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi > > My code looks like this. > > $test = "gerard's name is \"gerard\""; > echo $test.""; > echo ''; > ?> > > > > > > > > > When i run it the bit after the quotes are truncated. Where it truncates > depends on what type of quote i am using. > > Any ideas? > > Thanks > > Gerard > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php