magone Posted August 25, 2008 Report Share Posted August 25, 2008 Šadi rakstu kodā <input type="text" name="kur" value="<?php echo $row['kur'] ?>"> , bet tā kā $row['kur'] ir teksts, kurā var būt pēdiņas, value vērtība nobrūk, ja mainīgais satur pēdiņas. Kā šajā gadījumā rīkoties. Link to comment Share on other sites More sharing options...
Aleksejs Posted August 25, 2008 Report Share Posted August 25, 2008 Izmanto: htmlspecialchars() Link to comment Share on other sites More sharing options...
Grey_Wolf Posted August 25, 2008 Report Share Posted August 25, 2008 (edited) Tapat kaa jepgura gadijuma kad kodaa ir pedinjas vai citi Spec. simboli addslashes() edit: Aleksejs--> htmlspecialchars() dazos gadijumos nokaus JavaScriptu ka tik turies jo ' --> " kursh savukart satur ; Edited August 25, 2008 by Grey_Wolf Link to comment Share on other sites More sharing options...
marrtins Posted August 25, 2008 Report Share Posted August 25, 2008 Slashi šajā gadījumā nepalīdzēs, bet htmlspecialchars kā reiz Link to comment Share on other sites More sharing options...
Recommended Posts