Good morning,
I have a database, where users enter various news.
I have already talked to all of them, not to put capital letters in the inclusion, because it leaves the project aesthetically ugly.
Is there a way to issue an alert when you register? For example: "Your title is in capital letters, please correct".
How could I generate this alert using the code below?
<?php
require 'conexao1.php';
header ("Content-type: text/html; charset=utf-8");
$titulo = addslashes ($_POST['titulo']);
$sql = "INSERT INTO noticias (titulo) VALUES ('$titulo')";
mysql_query($sql) or die (mysql_error());
if ($sql) {
echo "<script> alert('Título inserido com sucesso!');
}
?>
I've been looking for some information, but I confess I have not done anything like it yet.
Thanks in advance for the help!