I have a website that has an input form that submits to a php page and adds a players username to a database and counts the views of that player's name to a top 10 list.
My friend tried out inputting other stuff such as html code and javascript. it get's displayed on my top 10 list.
do you have any suggestions how I can make my form more secure? I have been searching for ages and haven't found anything yet. all help would be highly appreciated :)
<form method="get" action="player.php">
<div class="form-group">
<div class="input-group input-group-lg">
<input name="user" type="text" class="form-control" placeholder="Steve" aria-describedby="sizing-addon2">
<span class="input-group-btn">
<input type="submit" class="btn btn-success" value="View Skin">
</span>
</div>
</form>