Location: PHPKode > projects > OpenSupports > Opensupports_v2_EN/support/new2.php
<?php 
require "config.php";

if (strlen($_POST[asunto]) == 0)
{
header ('Location: newerr.php?err=subject');
}
elseif (strlen($_POST[text_content]) < 10)
{
header ('Location: newerr.php?err=message');
}
else
{
$date = date("d/m/y H:i a");

$conect = mysql_query("insert into tickets(id,asunto,departamento,user,ultimo,contenido,fecha,leido) values ('','$_POST[asunto]','$_POST[departamento]','$_POST[name]','$_POST[name]','$_POST[text_content]','$date','0')") or die("Error en el Servidor".mysql_error());

header ('Location: newcomplete.php');
}
?>

Return current item: OpenSupports