Good nigth guys, I have a problem..
<fieldset class="form-group inline-label">
<textarea name="historia" class="form-control" maxlength="2000" minlength="700" placeholder="Minimo de 700 caracteres" requiredstyle="width:568px;height:180px;"></textarea>
<label for="formGroupExampleInput2">História:</label>
</fieldset>
I have more than this example but I'm using this one to explain. I have this textarea. I save the value to the database like this : $historia = $_POST['historia'];
$sql = "INSERT INTO pendentes(blabla phistoria,blabla) VALUES (?,?,?,?,?,?,?,?,?,?)";
if($stmt = $ligacao->prepare($sql))
{$stmt->bind_param("blabla", blabla, $historia);
$stmt->execute();
$stmt->close();
And If I insert and for example: ?> alert("Something Something"); it will save on the database and run when the page is open How can I fix it? Thanks in advance