I am making a site, so i need a autoredirect to a page called"contacts.html", in this piece of code
[php]
else
{
}
[/php]
i need to add auto redirect of previos page and add echo to it :
[php]
echo"Email is not good !";
[/php]
I have heared about echo’add html code here’;
but its not so good
so i want some help!
[php]
if (filter_var($email, FILTER_VALIDATE_EMAIL))
{
$connect = mysql_connect(“localhost”,“root”,"******") or die(“FATAL ERROR NUM 1”);
mysql_select_db("******") or die(“FATAL ERROR NUM 2”);
$sql=“INSERT INTO poruke (ime, email, poruka, date)
VALUES
(’$ime’,’$email’,’$poruka’,’$date’)”;
echo"Poruka poslata!";
mysql_query($sql,$connect);
}
else
{
}
[/php]