mysql - php form converting < sign to < -
mysql - php form converting < sign to < -
i using form post info mysql. whenever writing < gos database in '< ;' form. want send database <. start of form as:-
<form action="submit.php" method="post" enctype="multipart/form-data" accept-charset="utf-8" name="sedit"> ` and type fields treated
<? if($field_type=="input") { ?> <input name="<? echo $spec_id;?>" type="text" class="form-control" value="<? echo $spec_value;?>" /> <? } else { ?> <textarea name="<? echo $spec_id;?>" type="text" class="form-control"><? echo $spec_value;?></textarea> <? } ?> what have now?
if have < , want decode < use:
$html = html_entity_decode($text); echo html_entity_decode('<'); // prints < php mysql
Comments
Post a Comment