Repopulating forms

From: Date: Tue, 05 Aug 2003 13:55:34 +0000
Subject: Repopulating forms
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-158286@lists.php.net to get a copy of this message
Hi My code looks like this. <?PHP $test = "gerard's name is \"gerard\""; echo $test."<br>"; echo '<input type="text" name="test2" value="'.$test.'"><br>'; ?> <form action="test2.php" method="post"> <input type="text" name="foo" value="" /> <input type="submit" name="sub" value="submit"> </form> 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

« previous php.general (#158286) next »