mysql - php form converting < sign to < -



mysql - php form converting < sign to &lt; -

i using form post info mysql. whenever writing < gos database in '&lt ;' 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 &lt; , want decode < use:

$html = html_entity_decode($text); echo html_entity_decode('&lt;'); // prints <

php mysql

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -