Quantcast
Channel: Spiceworks Community
Viewing all articles
Browse latest Browse all 11

Allow special characters in form's texarea after submit

$
0
0

I created a form where someone can add their name and a comment and then submit it to my database.
here's the code of the form

PHP
$x=$_GET['st'];$result=$log->qry("Select * from students where id=".$x);$row=mysql_fetch_assoc($result);echo$row['name'].' - '.$row['surname'];?>echo$row['id'];?>">





and here's the code of the form's action

PHP
require('logmein.php');$log=newlogmein();if($log->logincheck($_SESSION['loggedin'],"logon","password","username")==false){//elenxos egkirotitas sindesis tou xristi sto sistima.An oxi epistrofi stin index me plirofories tou lathous$log->redirect($log->getHost());}if($_SESSION['userlevel']!=0){$log->redirect($log->getHost()."?result=3");}$student=$_POST['st'];$comm=$_POST['comm'];$comments=$_POST['comments'];$log->qry("Insert into comments...
This topic first appeared in the Spiceworks Community

Viewing all articles
Browse latest Browse all 11

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>