php - American apostrophe clears form input -
’ kind of apostrophe ruins input saved database. i've tried 
$generalchangedescriptions[$championnumber+1][$indexgeneral+1]=str_replace("’", "'",    $generalchangedescriptions[$championnumber+1][$indexgeneral+1]); so changing ’ ' no results still empty field. value apostrophe shown fine after sending with
 <input type="hidden" name="generalchangedescriptions" value="'.htmlspecialchars(json_encode($generalchangedescriptions)).'"> it no longer visible whole input blank there way fix this?
update:
after fiddling bit code found out json_encode wipes input after sending there easy solutions?
 
 
  
Comments
Post a Comment