tobeyt23 Posted September 21, 2007 Share Posted September 21, 2007 I have a form field and the user tested using this as the value: A "title's" -1/2, comma: (The; parens.) When I try to echo out back into the value of the form field to be edited all I get is A, but when i echo out anywhere else it echos correctly. Whats the deal? Quote Link to comment https://forums.phpfreaks.com/topic/70144-string-help/ Share on other sites More sharing options...
jitesh Posted September 21, 2007 Share Posted September 21, 2007 <input type="text" id="txt" name="txt" value="<?php echo htmlentities("A \"title's\"");?>"/> <input type="text" id="txt" name="txt" value='<?php echo htmlentities("A "title\'s");?>'/> Quote Link to comment https://forums.phpfreaks.com/topic/70144-string-help/#findComment-352251 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.